Skip to content

c-yn/FocalNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focal Network for Image Restoration

Yuning Cui, Wenqi Ren, Xiaochun Cao, Alois Knoll

Abstract

Image restoration aims to reconstruct a sharp image from its degraded counterpart, which plays an important role in many fields. Recently, Transformer models have achieved promising performance on various image restoration tasks. However, their quadratic complexity remains an intractable issue for practical applications. The aim of this study is to develop an efficient and effective framework for image restoration. Inspired by the fact that different regions in a corrupted image always undergo degradations in various degrees, we propose to focus more on the important areas for reconstruction. To this end, we introduce a dualdomain selection mechanism to emphasize crucial information for restoration, such as edge signals and hard regions. In addition, we split high-resolution features to insert multiscale receptive fields into the network, which improves both efficiency and performance. Finally, the proposed network, dubbed FocalNet, is built by incorporating these designs into a U-shaped backbone. Extensive experiments demonstrate that our model achieves state-of-the-art performance on ten datasets for three tasks, including single-image defocus deblurring, image dehazing, and image desnowing

Architecture

Installation

The project is built with PyTorch 3.8, PyTorch 1.8.1. CUDA 10.2, cuDNN 7.6.5 For installing, follow these instructions:

conda install pytorch=1.8.1 torchvision=0.9.1 -c pytorch
pip install tensorboard einops scikit-image pytorch_msssim opencv-python

Install warmup scheduler:

cd pytorch-gradual-warmup-lr/
python setup.py install
cd ..

Results

The resulting images can be downloaded here.

Task Dataset PSNR SSIM
Image Dehazing ITS 40.82 0.996
OTS 37.71 0.995
Dense-Haze 17.07 0.63
NH-HAZE 20.43 0.79
O-HAZE 25.50 0.94
NHR 25.35 0.969
Image Desnowing CSD 37.18 0.99
SRRS 31.34 0.98
Snow100K 33.53 0.95
Image Motion Deblurring GoPro 33.10 0.962

Citation

If you find this project useful for your research, please consider citing:

@inproceedings{cui2023focal,
  title={Focal Network for Image Restoration},
  author={Cui, Yuning and Ren, Wenqi and Cao, Xiaochun and Knoll, Alois},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={13001--13011},
  year={2023}
}

Contact

Should you have any question, please contact Yuning Cui.

About

[ICCV23] Focal Network for Image Restoration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages