SimHaze: game engine simulated data for real-world dehazing

Zhengyang Lou, Huan Xu, Fangzhou Mu, Yanli Liu, Xiaoyu Zhang, Liang Shang, Jiang Li, Bochen Guan, Yin Li, Yu Hen HuarXiv 2023 · DOI

Introduction

Single-image dehazing remains a fundamental challenge in computer vision, primarily due to the difficulty of obtaining paired training data. Capturing the same outdoor scene under both clear and hazy conditions simultaneously is physically impossible. Consequently, researchers have traditionally relied on synthetic datasets. These are typically created by taking clear images, estimating their depth maps using pre-trained models, and applying the Atmospheric Scattering Model (ASM) to simulate haze.

However, this approach introduces a significant bottleneck: depth estimation accuracy. Even minor errors in the estimated depth map lead to geometrically incorrect haze synthesis. When models are trained on such flawed data, they often fail to generalize to real-world scenarios. Furthermore, previous attempts to use game engines for data generation frequently suffered from a "domain gap," where the synthetic images appeared too artificial to be useful for real-world applications.

The SimHaze Pipeline

To address these issues, the authors introduce SimHaze, a pipeline leveraging the high-fidelity rendering capabilities of Unreal Engine 4 (UE4). By using a game engine, the researchers can bypass error-prone depth estimation entirely, obtaining mathematically perfect depth maps directly from the 3D environment.

The SimHaze data generation and training pipeline: (a) Acquisition of perfect depth and RGB images from 3D assets; (b) Generation of hazy images via ASM; (c) Direct training of dehazing networks.

The pipeline consists of three primary stages:

  1. Automated Acquisition: Using the UE4 Python API, camera paths are automated through high-quality 3D environments (urban areas and city parks) to capture "clean" RGB images and their corresponding ground-truth depth maps.
  2. Haze Synthesis: The standard ASM is applied to the clean images. By utilizing the perfect depth maps and varying parameters like atmospheric light ($A$) and the scattering coefficient ($\beta$), the authors generate a diverse range of hazy conditions.
  3. Photorealism Enhancements: To bridge the domain gap, the dataset utilizes high-resolution textures ($2048 \times 2048$) and a physically-based "Skydome" system, ensuring realistic sky rendering—a common failure point in synthetic datasets.

Training and Evaluation

The researchers trained two state-of-the-art architectures—GridDehazeNet (CNN-based) and DehazeFormer (Transformer-based)—directly on the SimHaze dataset. Notably, no complex domain adaptation techniques were required, suggesting that high-quality simulation alone is sufficient for real-world generalization.

SimHaze was benchmarked against standard datasets like RESIDE-OUT (natural images with estimated depth) and DLSU (an older game-engine dataset). Evaluation was conducted on real-world hazy images from the RTTS and Image2weather datasets using metrics such as FADE (haze density) and BRISQUE (image naturalness).

Key Insights

  • Depth Accuracy is Paramount: The study confirms that the efficacy of a dehazing model is directly tied to the quality of the depth maps used during training. Engine-native depth allows the model to learn the true physics of light attenuation.
  • Avoiding the "Cartoon" Effect: Unlike previous synthetic datasets that often led to over-processed, artificial-looking results, SimHaze's focus on high-resolution textures and HDR skyboxes allows models to maintain realistic textures in the output.
  • Simplicity in Training: If the simulation is sufficiently realistic and randomized, standard training procedures are effective, eliminating the need for computationally expensive domain adaptation.

Results and Conclusion

Quantitative results demonstrate that models trained on SimHaze achieve a superior balance between haze removal and naturalness. On the RESIDE-RTTS benchmark, a DehazeFormer model trained on SimHaze showed a 30% improvement in BRISQUE scores compared to models trained on other synthetic data.

While currently focused on urban environments, the SimHaze framework provides a scalable path forward for low-level vision tasks. Future work may involve expanding scene diversity to include natural landscapes and indoor environments, potentially benefiting related tasks such as depth estimation and night-time dehazing.

Summary updated

BibTeX
@misc{lou2023simhaze,
  author = {Zhengyang Lou and Huan Xu and Fangzhou Mu and Yanli Liu and Xiaoyu Zhang and Liang Shang and Jiang Li and Bochen Guan and Yin Li and Yu Hen Hu},
  title = {{SimHaze: game engine simulated data for real-world dehazing}},
  year = {2023},
  eprint = {2305.16481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.16481},
}
Figure