Sensor-realistic Synthetic Data Engine for Multi-frame High Dynamic Range Photography

Jinhan Hu, Gyeongmin Choe, Zeeshan Nadir, Osama Nabil, Seok-Jun Lee, Hamid R. Sheikh, Youngjun Francis Yoo, Michael O. PolleyWorkshops @ CVPR 2020

Abstract

High Dynamic Range (HDR) photography on mobile devices requires large, high-quality datasets for training deep learning models. However, real-world data collection is challenging due to alignment issues and the difficulty of capturing ground truth. This paper presents a pipeline to generate sensor-realistic synthetic data from game engines by modeling specific camera noise and color characteristics. Results show that fine-tuning models with this realistic synthetic data significantly improves performance and reduces artifacts compared to using pure synthetic data.

Introduction

Deep learning has revolutionized mobile photography, but it faces a significant "data problem." Training neural networks for multi-frame High Dynamic Range (HDR) imaging—where multiple images of different exposures are merged to capture detail in both shadows and highlights—requires thousands of perfectly aligned, high-quality image sets.

Collecting this data in the real world is technically difficult and expensive. Capturing a "ground truth" HDR image is often impossible due to camera shake and moving subjects. While synthetic data from game engines like Unreal Engine provides an infinite resource of perfectly aligned images, it is often "too perfect." It lacks the specific "fingerprint" of a real smartphone sensor, such as its unique noise patterns and color interpretation. Models trained on pure synthetic data often produce artifacts, excessive noise, or unrealistic colors when deployed on real devices.

Methodology

The authors propose a systematic pipeline to inject "sensor realism" into synthetic data, involving three main stages:

  1. Synthetic Data Generation: Using Unreal Engine, the researchers created diverse 3D environments with customizable human models and motions. This allows for the generation of perfectly aligned "ground truth" HDR images alongside multi-exposure sequences (underexposed, neutral, and overexposed).
Multi-exposure synthetic sequences generated in a virtual environment.
  1. Color Calibration: To match the color gamut of a specific device (e.g., the Samsung Galaxy S10 Plus), a physical light probe and color checker chart were used. By comparing how the real sensor and the virtual camera perceive the same colors, a transition matrix was calculated to map synthetic colors to the real sensor’s color space.
  2. Noise Modeling: Real sensors suffer from Poisson-Gaussian noise that varies with light intensity and ISO. The team captured 600 real-world images to estimate these parameters and applied the resulting mathematical noise model to the clean synthetic images.

The Importance of Sensor Realism

A critical finding of this research is that fine-tuning a model on "pure" synthetic data can actually degrade performance. Without accurate noise modeling, neural networks may interpret real-world sensor noise as actual image features. This leads to visible artifacts, such as unnatural white dots in the final HDR output.

Comparison showing artifacts (green arrows) produced by models trained on pure synthetic data versus the ground truth.

Furthermore, the study demonstrates that sensor specificity matters. A model trained for a high-end DSLR does not naturally excel on a smartphone sensor. Tuning the synthetic data to the specific target sensor is more effective than simply increasing the volume of generic training data.

Key Results and Evaluation

The researchers evaluated their approach using two different U-Net architectures:

  • Device-Optimized Performance: For a model optimized for the S10 Plus, fine-tuning with sensor-realistic data improved the Peak Signal-to-Noise Ratio (PSNR) from 40.40 to 41.56. Qualitatively, this resulted in significantly better shadow detail and noise reduction.
  • Cross-Domain Adaptation: A model pre-trained on Canon DSLR data initially performed poorly on smartphone images (19.50 PSNR). After fine-tuning with the sensor-realistic synthetic data, the PSNR increased to 24.73—a 26.8% improvement.
  • Ablation Studies: These tests confirmed that using the correct color model is vital; for instance, using S9 color data for an S10 model yielded inferior results, highlighting the necessity of precise sensor modeling.

Conclusion and Future Work

This research demonstrates that bridging the domain gap between synthetic and real-world data is essential for high-quality mobile HDR. By modeling the specific noise and color characteristics of a target sensor, researchers can leverage the infinite scale of synthetic data without sacrificing realism.

Future work will focus on two areas:

  1. Deghosting: Utilizing engine-generated motion masks to train models to better handle artifacts caused by moving objects during multi-frame capture.
  2. Expanded Realism: Incorporating "optical realism" (such as lens flare and chromatic aberration) and enhanced "scene realism" to make synthetic environments even more indistinguishable from the real world.

Summary updated

BibTeX
@inproceedings{hu2020sensor,
  author = {Jinhan Hu and Gyeongmin Choe and Zeeshan Nadir and Osama Nabil and Seok-Jun Lee and Hamid R. Sheikh and Youngjun Francis Yoo and Michael O. Polley},
  title = {{Sensor-realistic Synthetic Data Engine for Multi-frame High Dynamic Range Photography}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00266},
}
Figure