Abstract
Removing rain streaks from a single image is a challenging task due to its ill-posed nature. Traditional supervised methods require paired "rainy" and "clean" images, which are difficult to obtain in real-world scenarios. This paper proposes RainRemoval-GAN (RR-GAN), a novel framework that leverages unpaired training data. By integrating a physical image-composition model as a structural constraint within a Generative Adversarial Network (GAN), RR-GAN achieves high-quality deraining and real-time performance without the need for expensive ground-truth pairs.
Introduction
The problem of single image rain removal is mathematically defined by the equation $I = X + R$, where $I$ is the observed rainy image, $X$ is the clean background, and $R$ represents the rain streaks. Recovering $X$ requires simultaneously estimating both the background and the rain components.
Existing approaches generally fall into two categories: prior-based methods and data-driven supervised methods. Prior-based methods rely on hand-crafted mathematical assumptions that often fail to capture the complexity of real-world rain. Supervised methods, while powerful, depend on paired datasets which are typically synthesized, leading to a domain gap when applied to real photos. RR-GAN addresses these issues by training on unpaired data—separate collections of rainy and clean images—using a differentiable programming perspective.
The RR-GAN Framework
The core of RR-GAN is a structural constraint that treats the physical rain model as part of the network's optimization. The architecture consists of two main components: the Multiscale Attention Memory Generator (MAMG) and the Multiscale Deeply Supervised Discriminator (MDSD).
Multiscale Attention Memory Generator (MAMG)
The MAMG avoids the "black box" nature of standard generators by using a recurrent attention mechanism. It extracts features at multiple scales to handle varying rain densities and iteratively refines a rain streak mask. This memory-based approach allows the model to better localize rain streaks and separate them from the background more cleanly than single-pass architectures.
Multiscale Deeply Supervised Discriminator (MDSD)
To ensure both local and global realism, the MDSD evaluates the generated images at four different convolutional layers. This multi-layer supervision forces the generator to produce results that are consistent in terms of fine details and overall color/appearance, preventing the common GAN issue of global color shifts.
Physical Consistency Constraint
Unlike standard image-to-image translation models like CycleGAN, RR-GAN enforces a physical consistency constraint based on the $I = X + R$ model. The network learns to produce a clean image and a rain mask that, when combined, perfectly reconstruct the original input. This constraint preserves the original image's structure and prevents the model from "hallucinating" new objects.
Experimental Results
The model was evaluated on the Rain800 and Rain100H datasets. On the Rain800 benchmark, RR-GAN achieved a PSNR of 23.51 and an SSIM of 0.7566. Notably, it outperformed several supervised methods, such as JORDER, proving that a well-designed architecture can overcome a lack of explicit labels.
Beyond image quality, RR-GAN is highly efficient, processing images in approximately 0.03 seconds. This real-time capability makes it suitable for practical applications such as autonomous driving and video surveillance.
Conclusion
RR-GAN demonstrates that high-quality single image rain removal is possible without the need for expensive paired datasets. By combining deep learning with physical modeling and multiscale attention, the framework provides a robust and efficient solution for real-world deraining tasks. Future work may extend this differentiable programming approach to other atmospheric degradations like snow or fog.
Summary updated