Abstract
We present a supervised technique for learning to remove rain from images without using synthetic rain software. The method is based on a two-stage data distillation approach: 1) A rainy image is first paired with a coarsely derained version using a simple filtering technique ("rain-to-clean"). 2) Then a clean image is randomly matched with the rainy soft-labeled pair. Through a shared deep neural network, the rain that is removed from the first image is then added to the clean image to generate a second pair ("clean-to-rain"). The neural network simultaneously learns to map both images such that high-resolution structure in the clean images can inform the deraining of the rainy images. Demonstrations show that this approach can address those visual characteristics of rain not easily synthesized by software in the usual way.
Introduction: The Generalization Gap in Image Deraining
Most single-image rain removal (deraining) models are trained on synthetic datasets where rain is added to clean images using software. However, synthetic rain is often too "perfect"—it tends to be homogeneous in shape, brightness, and direction. Real rain is messy, irregular, and varies wildly depending on lighting and camera settings.
Because of this "generalization gap," models that perform perfectly on synthetic benchmarks often fail when faced with real-world downpours. Capturing real-world rainy/clean image pairs is physically impossible for the same scene, and unsupervised methods like CycleGANs often struggle to isolate low-energy features like rain streaks.
Methodology: Two-Stage Data Distillation
The authors propose a two-stage data distillation approach that allows them to use unlabeled real-world rainy images for supervised learning. This framework treats rain as a form of sparse noise that can be isolated and repurposed as a training resource.
Stage 1: The Data Transformation Module
First, a "soft label" is created. A real rainy image ($X$) passes through a coarse, unsupervised deraining process involving downscaling, a Joint Super-Resolution and Denoising Network (SRDN), and a guided filter. This produces a rain-free but slightly blurred version of the original image ($Y_g$).
Stage 2: The Data Feedback Module
In this stage, the main Derain Network predicts a rain residual map ($\hat{R}$) from the real rainy image. The network is trained with two objectives:
- Soft Objective: The derained version of the real image is matched against the "soft label" from Stage 1 to learn what to remove.
- Hard Objective: To recover sharpness, the extracted rain map is enhanced and added to a different, random clean image ($C$). This creates a "hard labeled" pair ($D, C$) where the rain is real but the ground truth is perfectly sharp, teaching the network how to preserve background details.
Network Architecture
The Derain Network employs a hierarchical aggregation architecture with multi-scale dilated convolution blocks. This design helps the network capture the irregular characteristics of real rain streaks while remaining computationally efficient, processing a $512 \times 512$ image in just 0.15 seconds on a GPU.
Results and Discussion
Tests on 1,600 real-world rainy images show that this method significantly outperforms state-of-the-art supervised models like DDN and JORDER, which often leave visible artifacts or fail to remove heavy rain streaks. Interestingly, the model also demonstrates cross-task generalization, successfully performing snow removal without retraining due to the similar sparse, irregular characteristics of snow and rain.
Conclusion
By distilling real rain from unlabeled images, this approach bridges the gap between synthetic training and real-world performance. While the soft and hard objectives can sometimes compete, the method provides a robust framework for image restoration where paired data is difficult to obtain. Future work may extend this logic to tasks like de-hazing or dirt removal.
Summary updated