Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When Fast Fourier Transform Meets Transformer for Image Restoration (ECCV 2024)

License

deng-ai-lab/SFHformer

Repository files navigation

[When Fast Fourier Transform Meets Transformer for Image Restoration] (ECCV 2024)

Official implementation.

Authors

Xingyu Jiang, Xiuhui Zhang, Ning Gao, Yue Deng *

School of Astronautics, Beihang University, Beijing, China

News

Thanks for your interest in our work, we will continue to optimize our code. If you have any other questions, please feel free to raise them in the issues, and I will try my best to address them!

  • May 20, 2025: Our extension work SWFormer:"Image Restoration via Multi-domain Learning" of SFHformer is available at https://arxiv.org/pdf/2505.05504. Github Code: https://github.com/deng-ai-lab/SWFormer.
  • Apr 11, 2025: We release some visualizations of the dataset in the Visual result section.
  • Mar 27, 2025: We release the pre-training weights of ITS and OTS with the test code in the dehazing folder.
  • Oct 17, 2024: The train code is now open and our paper is available here!
  • Jul 25, 2024: Paper accepted at ECCV 2024.

Abstract: Natural images can suffer from various degradation phenomena caused by adverse atmospheric conditions or unique degradation mechanism. Such diversity makes it challenging to design a universal framework for kinds of restoration tasks. Instead of exploring the commonality across different degradation phenomena, existing image restoration methods focus on the modification of network architecture under limited restoration priors. In this work, we first review various degradation phenomena from a frequency perspective as prior. Based on this, we propose an efficient image restoration framework, dubbed SFHformer, which incorporates the Fast Fourier Transform mechanism into Transformer architecture. Specifically, we design a dual domain hybrid structure for multi-scale receptive fields modeling, in which the spatial domain and the frequency domain focuses on local modeling and global modeling, respectively. Moreover, we design unique positional coding and frequency dynamic convolution for each frequency component to extract rich frequency-domain features. Extensive experiments on thirty-one restoration datasets for a range of ten restoration tasks such as deraining, dehazing, deblurring, desnowing, denoising, super-resolution and underwater/low-light enhancement, demonstrate that our SFHformer surpasses the state-of-the-art approaches and achieves a favorable trade-off between performance, parameter size and computational cost.


Introduction

Network Architecture

Results

Experiments are performed for different image restoration tasks including, image dehazing, image deraining, image desnowing, image denoising, image super-resolution, single-image motion deblurring, defocus deblurring, image raindrop removal, low-light image enhancement and underwater image enhancement.

Image Dehazing (click to expand)

Image Deraining (click to expand)

Image Desnowing (click to expand)

Image Super-resolution (click to expand)

Image Raindrop Removal (click to expand)

Single-Image Motion Deblurring (click to expand)

Defocus Deblurring (click to expand)

Image Denoising (click to expand)

Underwater Image Enhancement (click to expand)

Low-light Image Enhancement (click to expand)

Prepare Datasets

Deraining Datasets: Rain200L/Rain200H DDN-Data DID-Data Train DID-Data Test SPA-Data Raindrop

Dehazing Datasets: ITS OTS O-HAZE NH-HAZE DENSE-HAZE SOTS

Low-light Enhancement Datasets: LOLv1 LOLv2 FiveK

Motion Deblur Datasets: Motion Blur(GoPro/HIDE/RealBlur-R/RealBlur-J)

Defocus Deblur Datasets: DPDD

Desnowing Datasets: CSD SRRS Snow100K

Underwater Enhancement Datasets: UIEB LSUI

Denoise Datasets: SIDD

Super-resolution Datasets: DIV2K Set5 Set14 B100 Urban100 Manga109

Pretrained model

Dehazing Datasets: ITS OTS

Low-light Enhancement Datasets: LOLv2-r LOLv2-s

Motion Deblur Datasets: GoPro

Visual Results

Dehazing Dataset SOTS-indoor SOTS-outdoor O-HAZE NH-HAZE DENSE-HAZE
Baidu NetDisk Download (8sj6) Download (awnk) Download (pfem) Download (e72s) Download (r7p4)
Low-light Dataset LOLv2-real LOLV2-syn
Baidu NetDisk Download (jqgh) Download (wy8i)
Underwater Dataset UIEB LSUI
Baidu NetDisk Download (7hxd) Download (jd7m)
Motion Deblurring Dataset GoPro
Baidu NetDisk Download (z9uv)
Desnowing Dataset SRRS
Baidu NetDisk Download (5899)
Raindrop Dataset RainDrop
Baidu NetDisk Download (4nay)
Deraining Dataset SPA-Data
Baidu NetDisk Download (k8s6)

Supplementary Material

For more details, see the supplementary material here!

References

Here is the BibTeX citation for the paper:

  @inproceedings{jiang2024fast,
    title={When Fast Fourier Transform Meets Transformer for Image Restoration},
    author={Jiang, Xingyu and Zhang, Xiuhui and Gao, Ning and Deng, Yue},
    booktitle={European Conference on Computer Vision},
    pages={381--402},
    year={2024},
    organization={Springer}
  }

Other Acknowledgment

Part of our code is based on the Dehazeformer and Restormer. Thanks for their awesome work.

Contact

If your submitted issue has not been noticed or there are further questions, please contact [email protected].

About

When Fast Fourier Transform Meets Transformer for Image Restoration (ECCV 2024)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages