[Paper Review] SDNet: mutil-branch for single image deraining using swin
This paper proposes SDNet, a multi-branch Swin-transformer-based model for single-image deraining that replaces conventional convolutions with a modified Swin transformer to capture long-range dependencies and improve feature representation. By integrating multi-scale feature fusion and skip connections, SDNet achieves state-of-the-art performance on Rain100L, Rain100H, and a new dataset Rain3000, with a 34.09 dB PSNR on Rain3000 and 1.95 dB improvement over MPRNet on Rain100H, while maintaining fast inference speed and low parameter count.
Rain streaks degrade the image quality and seriously affect the performance of subsequent computer vision tasks, such as autonomous driving, social security, etc. Therefore, removing rain streaks from a given rainy images is of great significance. Convolutional neural networks(CNN) have been widely used in image deraining tasks, however, the local computational characteristics of convolutional operations limit the development of image deraining tasks. Recently, the popular transformer has global computational features that can further facilitate the development of image deraining tasks. In this paper, we introduce Swin-transformer into the field of image deraining for the first time to study the performance and potential of Swin-transformer in the field of image deraining. Specifically, we improve the basic module of Swin-transformer and design a three-branch model to implement single-image rain removal. The former implements the basic rain pattern feature extraction, while the latter fuses different features to further extract and process the image features. In addition, we employ a jump connection to fuse deep features and shallow features. In terms of experiments, the existing public dataset suffers from image duplication and relatively homogeneous background. So we propose a new dataset Rain3000 to validate our model. Therefore, we propose a new dataset Rain3000 for validating our model. Experimental results on the publicly available datasets Rain100L, Rain100H and our dataset Rain3000 show that our proposed method has performance and inference speed advantages over the current mainstream single-image rain streaks removal models.The source code will be available at https://github.com/H-tfx/SDNet.
Motivation & Objective
- To address the limitations of CNN-based deraining models in capturing long-range contextual dependencies due to local receptive fields.
- To explore the potential of the Swin transformer in image deraining by replacing convolutional operations with global self-attention mechanisms.
- To design a multi-branch architecture that fuses features from different spatial scales for improved rain pattern and texture recovery.
- To propose a new, diverse dataset, Rain3000, to overcome data homogeneity and duplication issues in existing public benchmarks.
- To achieve high deraining performance with low parameter count and fast inference speed, enhancing practical deployment.
Proposed method
- The core architecture replaces standard convolutional layers with a modified Swin transformer block to enable global feature modeling and long-range dependency learning.
- A three-branch design is introduced: one branch for shallow feature extraction, one for deep feature learning, and a third for multi-scale feature fusion using the Mswt-3 module.
- Skip connections are employed to concatenate deep and shallow features, enhancing feature propagation and preserving fine-grained details.
- The Mswt-3 module uses sliding windows with cross-window attention to maintain linear computational complexity while enabling inter-window information exchange.
- A new dataset, Rain3000, is constructed from ImageNet with 3000 training and 400 test pairs, combining diverse backgrounds and rain patterns to improve model generalization.
- The model is trained end-to-end with a reconstruction loss based on the assumption that Y = B + R, where Y is the rainy image, B is the clean image, and R is the rain streaks.
Experimental results
Research questions
- RQ1Can the Swin transformer’s global attention mechanism outperform convolutional networks in single-image deraining by capturing long-range dependencies?
- RQ2How does a multi-branch architecture with cross-scale feature fusion improve deraining performance compared to single-path or two-branch designs?
- RQ3Does the use of skip connections between deep and shallow features enhance the recovery of fine textures and reduce artifacts?
- RQ4Can a newly curated dataset like Rain3000 with diverse backgrounds and rain patterns improve model generalization and reduce overfitting to homogeneous data?
- RQ5What is the trade-off between model performance, parameter count, and inference speed when using a transformer-based architecture in deraining?
Key findings
- SDNet achieves a PSNR of 34.09 dB and SSIM of 0.9621 on the Rain3000 dataset, outperforming all compared methods.
- On Rain100H, SDNet achieves a PSNR of 28.26 dB and SSIM of 0.8957, representing a 1.95 dB and 0.0497 improvement over the previous SOTA model MPRNet.
- SDNet reduces the number of parameters to 26.82% of DCSFN and 47.58% of MPRNet, while achieving faster inference—5.7× faster than DCSFN and 1.79× faster than MPRNet.
- Visual comparisons show that SDNet effectively removes rain streaks while preserving texture details, outperforming RESCAN, NLEDN, GCANet, PREnet, DCSFN, and MPRNet in both quantitative and qualitative results.
- The ablation study confirms that the Mswt-3 module with three branches yields the best performance (34.09 dB PSNR) among variants with 1.73M parameters.
- The proposed Rain3000 dataset demonstrates better diversity and generalization potential, supporting the evaluation of robust deraining models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.