Introduction
Single-image deraining is a classic ill-posed problem in computer vision: given an image obscured by rain, the goal is to recover the underlying clean scene. Historically, progress has been hindered by a "reality gap." Most models are trained on synthetic data—clean images with computer-generated streaks—which fail to capture the complex physics of real rain, such as refraction and varying motion blur. This paper bridges this gap by introducing a massive real-world dataset and a novel Spatial Attentive Network (SPANet).
A New Benchmark: The Real Rain Dataset
To evaluate deraining in the wild, the authors created a dataset of ~29,500 rain/clean image pairs. Since capturing the same scene simultaneously with and without rain is physically impossible, they utilized video sequences. By applying a statistical mode filter across frames, they estimated the static background radiance. A human-in-the-loop process was used to refine these estimates, ensuring high-quality ground-truth "clean" images that represent the true background of real rainy scenes.
The SPANet Architecture
The core of the proposed method is the Spatial Attentive Network (SPANet), which moves beyond standard local CNNs to understand the global structure of rain.
- Spatial Attentive Block (SAB): This unit employs a four-directional Iterative Recurrent Neural Network (IRNN). By scanning the image in four directions, the network accumulates the global context necessary to identify the linear, directional nature of rain streaks.
- Spatial Attentive Module (SAM): This module generates a heatmap (attention map) of rain regions. This guides the network to focus its cleaning efforts on streaks while preserving fine background details like textures and edges.
Key Results and Visual Comparison
SPANet significantly outperforms existing state-of-the-art (SOTA) methods. On the real-world test set, it achieved a Peak Signal-to-Noise Ratio (PSNR) of 38.06, compared to 30.36 for RESCAN and 33.28 for DDN.
As shown in the figure above, SPANet is particularly effective at removing the "misty" haze associated with heavy rain, which often causes other models to produce blurry or artifact-heavy results.
Conclusion
This research demonstrates that real-world data is paramount for practical deraining. By combining a high-quality real rain dataset with a spatial attention mechanism, SPANet sets a new standard for the field. While challenges remain in extremely heavy "haze-like" rain, this work provides a robust foundation for future real-world image restoration.
Summary updated