Invertible Image Signal Processing

Yazhou Xing, Zian Qian, Qifeng Chen

Professional photography and computer vision tasks often rely on RAW sensor data for its high bit depth and linear response. However, the massive size of RAW files makes them impractical for general storage and sharing. Standard Image Signal Processing (ISP) pipelines convert this data into compressed 8-bit sRGB images (like JPEGs), but this process is traditionally lossy and irreversible. This paper introduces InvISP, a novel framework that treats the ISP as a single, fully invertible neural network.

The Challenge: The One-Way Street of Traditional ISPs

Traditional ISPs consist of a sequence of hand-crafted steps, including demosaicing, white balance, denoising, and tone mapping. These steps often involve non-linear operations and quantization that discard significant information. Once an image is clipped or quantized into an 8-bit container, reconstructing the original 14-bit RAW data becomes an ill-posed problem. Existing "unprocessing" methods often struggle with inaccuracies, particularly in highlight regions where data has been clipped.

The InvISP Framework

InvISP reimagines the camera ISP as a stack of invertible bijective functions based on Normalizing Flows. By utilizing affine coupling layers and invertible 1x1 convolutions, the network ensures that the mapping from RAW to sRGB is mathematically reversible.

Overview of the InvISP pipeline, showing the forward rendering process, the inverse reconstruction, and potential applications like HDR and retouching.

Key Innovations

  • Bijective Mapping: Instead of modeling individual ISP steps, InvISP learns a single global mapping. This avoids the error accumulation found in sequential inversion methods.
  • Differentiable JPEG Simulation: To handle the information loss inherent in JPEG compression, the authors developed a simulator that approximates the non-differentiable rounding function using a Fourier series. This allows the network to remain robust against quantization artifacts during training.
  • Bi-directional Training: The model is optimized using a joint loss function that simultaneously improves forward rendering quality and inverse reconstruction accuracy.

Experimental Results

The researchers evaluated InvISP using the MIT-Adobe FiveK dataset, focusing on images from Canon EOS 5D and Nikon D700 cameras.

  • Reconstruction Accuracy: InvISP achieved a RAW reconstruction PSNR of over 45 dB, representing a significant 13+ dB improvement over previous state-of-the-art methods.
  • Visual Fidelity: The reconstructed RAW data is virtually indistinguishable from the original sensor data. Crucially, it successfully recovers information in over-exposed regions where traditional methods typically fail.
  • Compression Efficiency: By storing sRGB JPEGs alongside the InvISP model, users can achieve a compression ratio of approximately 30x compared to uncompressed RAW files, significantly outperforming lossy DNG formats.

Conclusion

The high-quality recovered RAW data enables professional-grade downstream tasks such as HDR reconstruction and advanced image retouching. While currently camera-specific, InvISP demonstrates that treating the ISP as an invertible process can bridge the gap between the convenience of compressed sRGB images and the power of RAW sensor data.

Summary updated

BibTeX
@inproceedings{xing2021invertible,
  author = {Yazhou Xing and Zian Qian and Qifeng Chen},
  title = {{Invertible Image Signal Processing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00622},
}
Figure