Skip to content

The official code of the ACCV 2024 paper "Image Deraining with Frequency-Enhanced State Space Model (DFSSM)"

Notifications You must be signed in to change notification settings

ShugoYamashita/DFSSM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFSSM (ACCV 2024)

[arxiv paper link], [ACCV2024 paper link]

This is the official code of the ACCV 2024 paper Image Deraining with Frequency-Enhanced State Space Model.

Abstract

Removing rain degradations in images is recognized as a significant issue. In this field, deep learning-based approaches, such as Convolutional Neural Networks (CNNs) and Transformers, have succeeded. Recently, State Space Models (SSMs) have exhibited superior performance across various tasks in both natural language processing and image processing due to their ability to model long-range dependencies. This study introduces SSM to image deraining with deraining-specific enhancements and proposes a Deraining Frequency-Enhanced State Space Model (DFSSM). To effectively remove rain streaks, which produce high-intensity frequency components in specific directions, we employ frequency domain processing concurrently with SSM. Additionally, we develop a novel mixed-scale gated-convolutional block, which uses convolutions with multiple kernel sizes to capture various scale degradations effectively and integrates a gating mechanism to manage the flow of information. Finally, experiments on synthetic and real-world rainy image datasets show that our method surpasses state-of-the-art methods. Code is available at /~https://github.com/ShugoYamashita/DFSSM.

Usage

Installation

This code was tested with the following environment configurations. It may work with other versions.

  • CUDA 11.7
  • Python 3.9
  • Pytorch 1.13.1+cu117
cd <this repository>
pip install -r requirements.txt
python setup.py develop --no_cuda_ext

Training

# training with multi GPUs
torchrun --nproc_per_node=4 --master_port=2222 basicsr/train.py --launcher pytorch -opt options/train_DFSSM_on_Rain200H.yml

# training with a single GPU
python basicsr/train.py -opt options/train_DFSSM_on_Rain200H.yml

Testing

python basicsr/test.py -opt options/train_DFSSM_on_Rain200H.yml

Evaluations

  1. for Rain200H/L, SPA-Data, and LHP-Rain datasets: PSNR and SSIM results are computed by using this Matlab Code.

  2. for DID-Data and DDN-Data datasets: PSNR and SSIM results are computed by using this Matlab Code.

Results of DFSSM

Synthetic or Real Dataset PSNR SSIM Visual Results
Synthetic Rain200H 32.99 0.9403 Download
Synthetic Rain200L 41.81 0.9905 Download
Synthetic DID-Data 35.66 0.9671 Download
Synthetic DDN-Data 34.53 0.9608 Download
Real SPA-Data 49.55 0.9939 Download
Real LHP-Rain 33.99 0.9322 Download

Citation

If you use this code or models in your research and find it helpful, please cite the following paper:

@InProceedings{Yamashita_2024_ACCV,
    author    = {Yamashita, Shugo and Ikehara, Masaaki},
    title     = {Image Deraining with Frequency-Enhanced State Space Model},
    booktitle = {Proceedings of the Asian Conference on Computer Vision (ACCV)},
    month     = {December},
    year      = {2024},
    pages     = {3655-3671}
}

Reference

This code is based on BasicSR, Restormer, and MambaIR. Thanks for their awesome work. BasicSR environment (v1.2.0), Restormer, MambaIR.

About

The official code of the ACCV 2024 paper "Image Deraining with Frequency-Enhanced State Space Model (DFSSM)"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages