Conditional Variational Image Deraining

Yingjun Du, Jun Xu, Xiantong Zhen, Ming-Ming Cheng, Ling ShaoIEEE TIP 2020 · DOI

TL;DR

This paper introduces a Conditional Variational Image Deraining (CVID) network that leverages the generative power of CVAEs to produce multiple plausible derained images, addressing the inherent ambiguity in image deraining. It also proposes novel Spatial Density Estimation (SDE) and Channel-wise (CW) deraining modules to adaptively handle the varying spatial and color-channel characteristics of rain streaks, leading to state-of-the-art performance on both synthetic and real-world datasets.

What Problem Does This Paper Address?

Image deraining, the task of removing rain streaks from images, is crucial for many computer vision applications like surveillance and object detection. While existing methods have achieved impressive results, they often struggle with the inherent probabilistic nature of rain. Rain streaks can vary significantly in intensity across different spatial locations and even within different color channels of the same image. Deterministic deraining methods, which aim to produce a single "best" output, fail to capture this variability and can lead to suboptimal results or artifacts. Furthermore, the ill-posed nature of deraining means there isn't always a single correct clean image, making probabilistic approaches more suitable.

Methods

The core of the proposed CVID network is built upon the Conditional Variational Auto-Encoder (CVAE) framework. Unlike standard VAEs, CVAEs can model latent distributions conditioned on side information, such as the clean image. In this context, the CVID network uses a CVAE to learn the latent distribution of clean image priors. During inference, it can sample multiple latent variables, leading to diverse and plausible derained image predictions.

To address the spatial variability of rain, the authors introduce a Spatial Density Estimation (SDE) module. This module estimates a rain density map for each image, capturing where and how intensely rain is present. This map is then used as an additional condition for the CVAE, enabling spatially adaptive deraining.

Recognizing that rain streaks also differ across color channels, a Channel-wise (CW) deraining scheme is proposed. This scheme processes each color channel (R, G, B) independently, inspired by the bright channel prior concept. This allows for more nuanced deraining that accounts for the distinct rain characteristics in each channel.

The CVID network integrates these components: an encoder maps rainy and clean images to a latent distribution, a prior network estimates a distribution for the clean image, and a decoder reconstructs the derained image using the rainy image, the SDE map, and sampled latent variables. The learning objective jointly minimizes the CVAE's reconstruction and KL divergence losses with the SDE module's density estimation loss.

Datasets

The paper evaluates the CVID network on several datasets:

  • Synthetic Datasets:
    • Dataset D1 [9]: 14,000 synthesized clean/rainy pairs.
  • Dataset D2 [52]: Consists of Rain100L (light rain) and Rain100H (heavy rain) subsets, with 1,800 and 200 pairs respectively.
  • Dataset D3 [54]: 12,000 synthesized pairs, with 1,200 used for testing.
  • Real-world Dataset: Images from [53], downloaded from the internet, covering various scenarios like light, medium, and heavy rain, as well as nighttime and dark backgrounds.

Key Insights and Ideas

  • Probabilistic Deraining is Key: The inherent ambiguity of image deraining means that a single deterministic output is often insufficient. CVAEs offer a natural way to model this uncertainty and generate multiple plausible derained images.
  • Spatially Adaptive Rain Removal: Rain isn't uniform. Explicitly estimating a spatial rain density map allows the model to focus deraining efforts where and how intensely rain is present, significantly improving local deraining quality.
  • Channel-Specific Deraining Matters: Rain streaks can manifest differently in R, G, and B channels. Treating these channels independently, rather than as a monolithic entity, leads to better preservation of image details and more accurate deraining.
  • Integration is Powerful: Combining the generative capabilities of CVAE with specialized modules for spatial and channel-wise rain estimation leads to a synergistic effect, outperforming individual component approaches.

Key Results

  • State-of-the-Art Performance: The CVID network consistently outperforms existing methods on synthetic datasets, achieving higher PSNR, SSIM, and lower NIQE scores. For instance, on dataset D1, it surpasses the second-best method (ID-GAN) by a significant margin.
  • Robustness on Real-World Data: The proposed method shows strong performance on real-world rainy images, where many synthetic-trained models struggle.
  • Ablation Studies Validate Components: Extensive ablation studies confirm the significant contributions of both the SDE module and the CW deraining scheme, showing substantial improvements when they are incorporated into baseline models.
  • Efficiency: While CVID with multiple samples (n=100) is slower, it offers a flexible trade-off between speed and accuracy, with a single sample (n=1) being faster than some competing methods.

Limitations and Future Work

  • Sample Number Trade-off: The paper notes that while increasing the number of samples (n) generally improves results, there's a point of diminishing returns, and too many samples can even degrade performance. The optimal number of samples for a given task is a hyperparameter to tune.
  • Hyperparameter Tuning: The performance is sensitive to hyperparameters like $\beta$ (balancing CVAE and SDE losses) and $\lambda$ (weighting KL and reconstruction losses). The paper provides some analysis but further exploration could be beneficial.
  • Future Work: The authors suggest that CVID's ability to generate multiple derained images could be further leveraged for tasks requiring uncertainty estimation or exploring different interpretations of the clean image. The framework's flexibility for other image restoration tasks is also implied.

Summary updated

BibTeX
@article{du2020conditional,
  author = {Yingjun Du and Jun Xu and Xiantong Zhen and Ming-Ming Cheng and Ling Shao},
  title = {{Conditional Variational Image Deraining}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.1109/tip.2020.2990606},
}
Figure