Unsupervised Neural Rendering for Image Hazing

Boyun Li, Yijie Lin, Jinfeng Bai, Peng Hu, Jiancheng Lv, Xi PengIEEE TIP 2021 · DOI

Abstract

Image hazing aims to render a hazy image from a given clean one, which could be applied to a variety of practical applications such as gaming, filming, photographic filtering, and image dehazing. To generate plausible haze, we study two less-touched but challenging problems in hazy image rendering, namely, i) how to estimate the transmission map from a single image without auxiliary information, and ii) how to adaptively learn the airlight from exemplars, i.e., unpaired real hazy images. To this end, we propose a neural rendering method for image hazing, dubbed as HazeGEN. To be specific, HazeGEN is a knowledge-driven neural network which estimates the transmission map by leveraging a new prior, i.e., there exists the structure similarity (e.g., contour and luminance) between the transmission map and the input clean image. To adaptively learn the airlight, we build a neural module based on another new prior, i.e., the rendered hazy image and the exemplar are similar in the airlight distribution. To the best of our knowledge, this could be the first attempt to deeply rendering hazy images in an unsupervised fashion. Comparing with existing haze generation methods, HazeGEN renders the hazy images in an unsupervised, learnable, and controllable manner, thus avoiding the labor-intensive efforts in paired data collection and the domain-shift issue in haze generation.

Introduction

Image hazing—the process of adding synthetic fog to a clean photograph—is a critical tool for the gaming and film industries, as well as for generating training data for image dehazing algorithms. However, creating realistic haze is surprisingly difficult. Traditional methods usually rely on 3D geometry or binocular vision to estimate depth, which requires auxiliary information like stereo pairs or manual annotations. Furthermore, most existing methods determine "airlight" (the color and intensity of the ambient light reflected by fog) through manual selection or random sampling. This often leads to a "domain shift," where synthetic hazy images look fundamentally different from real-world ones, making them less useful for training AI models. HazeGEN aims to bridge this gap by creating a system that learns to haze images in an unsupervised, learnable, and controllable manner.

Methodology

The HazeGEN framework is built upon the classical atmospheric scattering model:

$$I = t(x)J + (1 - t(x))A$$

Where $I$ is the hazy image, $J$ is the clean scene, $t(x)$ is the transmission map (how much light reaches the camera), and $A$ is the global airlight. HazeGEN consists of two primary neural modules:

  1. Transmission Estimation Network (TEN): Instead of requiring ground-truth depth, TEN leverages a Structure Similarity Prior. This is based on the observation that the transmission map should share structural features—like contours and luminance—with the input clean image. By assuming structure as a proxy for depth, the network provides a powerful inductive bias that prevents the "blurry" depth maps common in other unsupervised methods.
Estimated transmission map t(x) showing structural similarity to the scene.
  1. Airlight Transfer Network (ATN): To solve the airlight problem, the authors introduce an Airlight Consistency Prior. The ATN takes an unpaired real-world hazy image (an "exemplar") and extracts its airlight distribution, allowing the model to "transfer" the lighting style of a real foggy day onto a clean image.

Experiments and Results

The researchers utilized several benchmarks, including RESIDE (ITS & OTS) for clean images and RTTS for real-world hazy exemplars. Evaluation was performed against ground-truth references from I-HAZE and O-HAZE.

Qualitative and Quantitative Performance

In quantitative tests using Fréchet Inception Distance (FID), HazeGEN significantly outperformed the popular RESIDE baseline. For indoor scenes, HazeGEN achieved an FID of 203.34 compared to the baseline's 254.55 (lower is better). Subjectively, participants in a user study preferred HazeGEN-rendered images over traditional methods by a wide margin (84.34% preference for indoor cases).

Qualitative comparison of HazeGEN against the RESIDE baseline across various indoor and outdoor scenes.

Downstream Utility

To prove the generated data is useful, a dehazing model was trained on HazeGEN-generated images. This model performed better on real-world hazy datasets than models trained on standard synthetic data, suggesting that HazeGEN successfully reduced the domain shift.

Conclusion

HazeGEN represents a significant step forward in unsupervised neural rendering for image hazing. By combining physics-informed models with novel structural and airlight priors, it enables the generation of controllable, photorealistic fog from single images. While currently focused on static images, future work will address temporal consistency for video hazing and more complex lighting scenarios where the relationship between luminance and depth may be decoupled.

Summary updated

BibTeX
@article{li2021unsupervised,
  author = {Boyun Li and Yijie Lin and Jinfeng Bai and Peng Hu and Jiancheng Lv and Xi Peng},
  title = {{Unsupervised Neural Rendering for Image Hazing}},
  journal = {IEEE Trans. Image Process.},
  year = {2021},
  doi = {10.1109/tip.2022.3177321},
}
Figure