/SPAN

Swift Parameter-free Attention Network for Efficient Super-Resolution

Primary LanguagePythonApache License 2.0Apache-2.0

SPAN for Efficient Image Super-Resolution

Cheng Wan, Hongyuan Yu, Zhiqi Li, Yihang Chen, Yajun Zou, Yuqing Liu, Xuanwu Yin and Kunlong Zuo

Paper

Introduction:

The official pytorch implementation of the paper Swift Parameter-free Attention Network for Efficient Super-Resolution

Single Image Super-Resolution (SISR) is a crucial task in low-level computer vision, aiming to reconstruct high-resolution images from low-resolution counterparts. Conventional attention mechanisms have significantly improved SISR performance but often result in complex network structures and large number of parameters, leading to slow inference speed and large model size. To address this issue, we propose the Swift Parameter-free Attention Network (SPAN), a highly efficient SISR model that balances parameter count, inference speed, and image quality. SPAN employs a novel parameter-free attention mechanism, which leverages symmetric activation functions and residual connections to enhance high-contribution information and suppress redundant information. Our theoretical analysis demonstrates the effectiveness of this design in achieving the attention mechanism's purpose. We evaluate SPAN on multiple benchmarks, showing that it outperforms existing efficient super-resolution models in terms of both image quality and inference speed, achieving a significant quality-speed trade-off. This makes SPAN highly suitable for real-world applications, particularly in resource-constrained scenarios. Notably, our model attains the best PSNR of 27.09 dB, and the test runtime of our team is reduced by 7.08ms in the NTIRE 2023 efficient super-resolution challenge.

Installation:

This implementation based on BasicSR. Please refer to BasicSR for training and testing. You can obtain all the checkpoints and results from [Google Drive].

python 3.9.5
pytorch 1.11.0
cuda 11.3
git clone this repo
cd SPAN
pip install -r requirements.txt
python setup.py develop --no_cuda_ext

Results

Cite

If our work is useful to you, please use the following BibTeX for citation.

@misc{wan2023swift,
      title={Swift Parameter-free Attention Network for Efficient Super-Resolution}, 
      author={Cheng Wan and Hongyuan Yu and Zhiqi Li and Yihang Chen and Yajun Zou and Yuqing Liu and Xuanwu Yin and Kunlong Zuo},
      year={2023},
      eprint={2311.12770},
      archivePrefix={arXiv},
      primaryClass={eess.IV}
}

📜 License and Acknowledgement

This project is released under the Apache 2.0 license.
More details about license and acknowledgement are in LICENSE.