Abstract
Severe weather conditions such as rain and snow adversely affect the visual quality of images, rendering them problematic for both human consumption and computer vision systems. Single image de-raining is an inherently ill-posed problem. This paper introduces the Image De-raining Conditional Generative Adversarial Network (ID-CGAN), a framework that incorporates quantitative, visual, and discriminative performance into its objective function. By utilizing a densely connected generator, a multi-scale discriminator, and a refined perceptual loss function, ID-CGAN achieves state-of-the-art results on both synthetic and real-world datasets, significantly improving performance in downstream tasks like object detection.
Introduction
Capturing clear images in heavy rain is a significant challenge for both photographers and automated systems. Rain streaks obscure background details, degrade contrast, and introduce noise, which can lead to failures in autonomous driving, surveillance, and face recognition. Mathematically, a rainy image $x$ is modeled as the superposition of a clean background $y$ and rain streaks $w$: $x = y + w$. Recovering $y$ from $x$ is an ill-posed problem because infinitely many combinations of $y$ and $w$ can produce the same $x$. Traditional CNN-based approaches often rely on pixel-level losses (e.g., Mean Squared Error), which frequently result in over-smoothed, blurry images that lack high-frequency details.
Methodology: The ID-CGAN Framework
The proposed ID-CGAN treats de-raining as an image-to-image translation task. The architecture is composed of two primary modules designed to balance detail preservation with noise removal:
1. Densely Connected Generator ($G$)
To preserve fine-grained spatial details while stripping away rain streaks, the generator utilizes a symmetric structure with dense blocks. These blocks ensure strong gradient flow and high parameter efficiency, allowing the model to effectively separate the background from the rain components without losing critical scene information.
2. Multi-scale Discriminator ($D$)
Unlike standard discriminators that operate on a single scale, the ID-CGAN discriminator pools features at multiple resolutions. This enables the model to evaluate both local textures (e.g., sharpness of edges) and global context (e.g., natural scene consistency), forcing the generator to produce more realistic, artifact-free results.
Refined Perceptual Loss
To stabilize training and enhance visual quality, a composite loss function $L_{RP}$ is employed, combining three distinct components:
- Euclidean Loss: Maintains pixel-level similarity to the ground truth.
- Adversarial Loss: Encourages the generation of sharp, realistic textures to "fool" the discriminator.
- Perceptual Loss: Uses high-level features from a pre-trained VGG-16 network to ensure that the content and style of the de-rained image match the original scene.
Experimental Evaluation
The model was evaluated on synthetic datasets (derived from UCID and BSD-500) and a curated set of real-world rainy images. Quantitative performance was measured using Peak Signal-to-Noise Ratio (PSNR), Structural Similarity (SSIM), and Visual Information Fidelity (VIF).
Quantitative Results
ID-CGAN consistently outperformed state-of-the-art methods. For example, it achieved a PSNR of 24.34 dB, significantly higher than traditional dictionary-based and standard CNN methods. This indicates a superior ability to reconstruct the underlying clean image from noisy, rainy inputs.
Qualitative Analysis and Downstream Impact
Visually, ID-CGAN produces sharper images with fewer "ghostly" artifacts compared to previous methods. It excels at retaining original textures while completely removing streaks, as shown in the comparison below.
Beyond visual aesthetics, de-raining serves as a critical pre-processing step for computer vision. Testing on a rain-degraded version of the PASCAL VOC 2007 dataset showed that de-raining with ID-CGAN improved the mean Average Precision (mAP) of a Faster R-CNN detector from 0.39 to 0.69.
Conclusion
ID-CGAN provides a robust solution for single image de-raining by leveraging the strengths of conditional GANs and a refined perceptual loss. The framework not only improves visual quality for human observers but also significantly enhances the reliability of computer vision systems in adverse weather. Future research will focus on extending the framework to video de-raining and handling other weather degradations like snow and heavy haze within a unified model.
Summary updated