Skip to content

Official implementation of our paper "Diving Deep into Regions: Exploiting Regional Information Transformer for Single Image Deraining."

License

Notifications You must be signed in to change notification settings

ztMotaLee/Regformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dive deep into regions: Exploiting regional information transformer for single image deraining

Baiang Li, Zhao Zhang, Huan Zheng, Xiaogang Xu, Yanyan Wei, Jingyi Zhang, Jicong Fan and Meng Wang

paper paper supplement


Abstract: Transformer-based Single Image Deraining (SID) methods have achieved remarkable success, primarily attributed to their robust capability in capturing long-range interactions. However, we've noticed that current methods handle rain-affected and unaffected regions concurrently, overlooking the disparities between these areas, resulting in confusion between rain streaks and background parts, and inabilities to obtain effective interactions, ultimately resulting in suboptimal deraining outcomes. To address the above issue, we introduce the Region Transformer (Regformer), a novel SID method that underlines the importance of independently processing rain-affected and unaffected regions while considering their combined impact for high-quality image reconstruction. The crux of our method is the innovative Region Transformer Block (RTB), which integrates a Region Masked Attention (RMA) mechanism and a Mixed Gate Forward Block (MGFB). Our RTB is used for attention selection of rain-affected and unaffected regions and local modeling of mixed scales. The RMA generates attention maps tailored to these two regions and their interactions, enabling our model to capture comprehensive features essential for rain removal. To better recover high-frequency textures and capture more local details, we develop the MGFB as a compensation module to complete local mixed scale modeling. Extensive experiments demonstrate that our model reaches state-of-the-art performance, significantly improving the image deraining quality.


Network Architecture

## Training ``` cd Regformer bash train.sh ``` Run the script then you can find the generated experimental logs in the folder `experiments`.

Training

python basicsr/train.py -opt Options/Deraining.yml

Change the yaml file to Deraining-L.yml if you use Regformer-L.

Testing

python test.py --task Deraining --input_dir './test/input/' --result_dir './test/output/'

Pre-trained Models

</tr>
version Rain200L Rain200H DID-Data DDN-Data SPA-Data HQ-Rain
Regformer Download Download Download Download Download Download
Regformer-L Download Download Download Download Download Download

Performance Evaluation

Visual Deraining Results

Citation

If you are interested in this work, please consider citing:

@misc{li2024diving,
      title={Diving Deep into Regions: Exploiting Regional Information Transformer for Single Image Deraining}, 
      author={Baiang Li and Zhao Zhang and Huan Zheng and Xiaogang Xu and Yanyan Wei and Jingyi Zhang and Jicong Fan and Meng Wang},
      year={2024},
      eprint={2402.16033},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgment

This code is based on the Restormer. Thanks for their awesome work. Additionally, this github page is based on DRSformer.

Contact

Should you have any question or suggestion, please contact [email protected].

About

Official implementation of our paper "Diving Deep into Regions: Exploiting Regional Information Transformer for Single Image Deraining."

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages