Abstract
We propose a trainable Image Signal Processing (ISP) framework that produces DSLR quality images given RAW images captured by a smartphone. To address the color misalignments between training image pairs, we employ a color-conditional ISP network and optimize a novel parametric color mapping between each input RAW and reference DSLR image. During inference, we predict the target color image by designing a color prediction network with efficient Global Context Transformer modules. The latter effectively leverage global information to learn consistent color and tone mappings. We further propose a robust masked aligned loss to identify and discard regions with inaccurate motion estimation during training. Lastly, we introduce the ISP in the Wild (ISPW) dataset, consisting of weakly paired phone RAW and DSLR sRGB images. We extensively evaluate our method, setting a new state-of-the-art on two datasets.
Introduction: Bridging the Mobile-DSLR Gap
Researchers from ETH Zürich and the University of Würzburg have developed a sophisticated deep-learning approach to bridge the hardware gap between mobile phone sensors and high-end DSLR cameras. By rethinking the Image Signal Processing (ISP) pipeline, the authors demonstrate how to produce professional-grade sRGB images from noisy, low-quality smartphone RAW data.
Traditional ISP pipelines—the software that converts raw sensor data into viewable photos—are often hand-designed and optimized for the specific, limited hardware of a smartphone. While deep learning offers a way to "learn" a better ISP, training such models is notoriously difficult "in the wild."
The primary challenge is weakly paired data. When capturing images with a phone and a DSLR simultaneously, the resulting pairs are never perfectly aligned. Spatial misalignment occurs due to parallax and hand movement, while color misalignment arises from differing sensor characteristics. Standard loss functions like $L_1$ or $MSE$ fail in these scenarios, often resulting in blurry outputs or "ghosting" artifacts as the model attempts to average out the physical distance between the two images.
Methodology: Decoupling Restoration and Color
The proposed framework decouples the complex task of image restoration from global color mapping using a multi-stage architecture:
- Color-Conditional ISP Network ($F$): Instead of a simple "RAW-in, sRGB-out" model, this network is conditioned on a target color image. This allows the restoration network to focus specifically on denoising and demosaicing, while the "style" or color profile is provided as an external hint.
- Parametric Color Mapping ($C$): During training, the authors provide a color "hint" without "leaking" high-frequency details from the ground truth DSLR image. They use a flexible, bin-based affine mapping that captures color transformations without transferring spatial details.
- Color Prediction Network ($G$): At inference time, this network predicts the target color using a Global Context Transformer. By using a fixed-size latent array and cross-attention, it captures global image statistics to ensure color consistency across the whole frame while maintaining linear computational complexity.
- Masked Aligned Loss: To handle spatial misalignment, the authors use optical flow (PWC-Net) to align images. Crucially, they introduce a "mask" that identifies and ignores regions where optical flow is likely inaccurate (e.g., occlusions), preventing the model from learning from corrupted data.
The ISP in the Wild (ISPW) Dataset
To support this research, the authors introduced the ISP in the Wild (ISPW) dataset. It contains 200 high-resolution captures from a Huawei Mate 30 Pro and a Canon 5D Mark IV. The dataset includes metadata like ISO and exposure, and provides DSLR references at three different exposure levels (-1, 0, +1 EV).
Experimental Results
The method sets a new State-of-the-Art (SOTA) on both the ZRR (Zurich RAW-to-RGB) and ISPW benchmarks.
Quantitative and Qualitative Performance
On the ZRR dataset, the model achieved a PSNR of 25.24 dB, outperforming the previous best method (LiteISP-Net) by 1.43 dB. Visual results show much sharper details and more accurate color reproduction compared to competing methods, which often produced "dull" colors or blurry edges in misaligned regions.
Efficiency
Despite using Transformers, the model remains efficient. Inference takes approximately 67.6 ms for a $448 \times 448$ image on an Nvidia V100 GPU, showing promise for practical mobile applications.
Conclusion
By separating color/tone mapping from denoising/demosaicing and employing a robust loss for misaligned data, this framework effectively transforms smartphone captures into DSLR-quality images. Future work may explore the use of metadata to create controllable ISPs, allowing users to adjust the specific "look" of their photos.
Summary updated