In this article
Lossless file compression preserves the encoded channel samples, not the higher-precision values that may have existed before export.
Define what must survive the round trip
A synthetic-data pipeline may store radiance, depth and discrete object identifiers in related render outputs. These channels do not share the same acceptable error. A preview that looks unchanged can hide a numerical alteration in a depth target or an invalid identifier. Specify whether the consumer requires exact samples, a bounded numerical tolerance or only a visually acceptable illustration before selecting the storage pipeline.
Separate channel conversion from compression
A renderer can convert its internal result into a lower-precision channel before applying a file codec. The Mitsuba film reference exposes component_format separately from the output file format. A lossless codec cannot restore precision already removed by that conversion. Record the stored channel type as part of the dataset contract, alongside the originating result type and any intentional quantization step.
Read guarantees for the actual channel type
The OpenEXR technical introduction distinguishes lossless and lossy methods. It also shows why a codec’s behavior must be read with its input type: PXR24 preserves HALF and UINT channels exactly but rounds FLOAT channels. Therefore, a short codec label is insufficient evidence that every channel’s values survived unchanged. Check each numerical target independently instead of assigning a single visual-quality conclusion to the entire file.
Configure and inspect the written artifact
The Python interface provides header compression settings and channel dtypes. Inspect those properties on the actual written file, especially after a conversion service or image-processing tool. Keep integer identifiers in an appropriate discrete representation and avoid a display-oriented image path that treats them as colors. Include missing-value and non-finite-value conventions in the target specification where the task needs them.
Test the consumer’s decoded values
Round-trip representative channels through the same writer and reader used in the dataset pipeline. Compare identifiers exactly and continuous values under the stated tolerance. Include difficult depth ranges and bright radiance values rather than testing only a pleasant midtone preview. Background on mixed-precision arithmetic and render feature buffers helps distinguish numerical representation from channel purpose. A smaller EXR is useful only if its decoded data still satisfies the learning task’s contract.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.