TECHNOLOGY

Mitsuba image outputs: keep linear training targets separate from display previews

In this article
THE QUICK TAKE

A display preview and a linear rendering tensor can depict the same scene while representing different numerical learning targets.

Identify the tensor before evaluating the image

An inverse-rendering experiment can appear visually correct while comparing predictions and references in different numerical spaces. The Mitsuba quickstart describes the rendered image tensor as linear RGB. A preview prepared for a display is a transformed representation. Before computing a pixel loss, define which representation the target actually uses and make the predicted image follow the same convention.

Keep the preview out of the measurement path

The quickstart’s image-writing utility applies display-oriented handling when saving a low-dynamic-range format such as PNG. That output is useful for inspection, but it should not silently replace the original tensor in a radiometric comparison. Display conversion, quantization and clipping can change values that an optimization objective sees. Maintain a separate preview path when an experiment needs both a readable illustration and an unmodified numerical reference.

Distinguish interpretation from conversion

The Bitmap guide separates an image’s component format, channel layout and sRGB interpretation. Changing an interpretation flag does not itself transform the stored samples. Use the documented conversion operation when a numerical conversion is required. Merely changing a filename extension or declaring a new gamma interpretation cannot recover values lost through earlier clipping or integer quantization.

Preserve the intended HDR representation

OpenEXR can store floating-point channels and values outside a display’s ordinary preview range. However, its technical introduction warns that even color-space metadata can be absent or incorrect; the container does not enforce every stated interpretation. Record the output writer, channel selection, component type and actual color transformation. When loading a reference, inspect the library’s decoding behavior rather than assuming that every EXR contains the same linear color space.

Test the complete reference path

Use a small rendered example containing a bright region, a midtone and a dark region. Compare the tensor before writing with the decoded training target, using the intended tolerance and transformation. Keep visual preview acceptance separate from that numerical check. Denoiser feature buffers similarly require explicit channel meaning, while image orientation handling addresses geometry. A model can learn the wrong target even when both its image dimensions and its rendered preview look convincing.

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.

Explore GPU hosting
← All articles