CVPR2023 - Activating More Pixels in Image Super-Resolution Transformer TPAMI - HAT: Hybrid Attention Transformer for Image Restoration
Python
1,600
90 commits
updated Jun 2, 2024
Xiangyu Chen, Xintao Wang, Jiantao Zhou, Yu Qiao and Chao Dong
Xiangyu Chen, Xintao Wang, Wenlong Zhang, Xiangtao Kong, Jiantao Zhou, Yu Qiao and Chao Dong
Benchmark results on SRx4 without ImageNet pretraining. Mulit-Adds are calculated for a 64x64 input.
| Model | Params(M) | Multi-Adds(G) | Set5 | Set14 | BSD100 | Urban100 | Manga109 |
|---|---|---|---|---|---|---|---|
| SwinIR | 11.9 | 53.6 | 32.92 | 29.09 | 27.92 | 27.45 | 32.03 |
| HAT-S | 9.6 | 54.9 | 32.92 | 29.15 | 27.97 | 27.87 | 32.35 |
| HAT | 20.8 | 102.4 | 33.04 | 29.23 | 28.00 | 27.97 | 32.48 |
Note that:
Results produced by Real_HAT_GAN_SRx4_sharper.pth.
Comparison with the state-of-the-art Real-SR methods.
@InProceedings{chen2023activating,
author = {Chen, Xiangyu and Wang, Xintao and Zhou, Jiantao and Qiao, Yu and Dong, Chao},
title = {Activating More Pixels in Image Super-Resolution Transformer},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2023},
pages = {22367-22377}
}
@article{chen2023hat,
title={HAT: Hybrid Attention Transformer for Image Restoration},
author={Chen, Xiangyu and Wang, Xintao and Zhang, Wenlong and Kong, Xiangtao and Qiao, Yu and Zhou, Jiantao and Dong, Chao},
journal={arXiv preprint arXiv:2309.05239},
year={2023}
}
Install Pytorch first. Then,
pip install -r requirements.txt
python setup.py develop
Without implementing the codes, chaiNNer is a nice tool to run our models.
Otherwise,
./options/test for the configuration file of the model to be tested, and prepare the testing data and pretrained model.HAT_SRx4_ImageNet-pretrain.pth as an example):python hat/test.py -opt options/test/HAT_SRx4_ImageNet-pretrain.yml
The testing results will be saved in the ./results folder.
./options/test/HAT_SRx4_ImageNet-LR.yml for inference without the ground truth image.Note that the tile mode is also provided for limited GPU memory when testing. You can modify the specific settings of the tile mode in your custom testing option by referring to ./options/test/HAT_tile_example.yml.
./options/train for the configuration file of the model to train.CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 hat/train.py -opt options/train/train_HAT_SRx2_from_scratch.yml --launcher pytorch
The training logs and weights will be saved in the ./experiments folder.
The inference results on benchmark datasets are available at Google Drive or Baidu Netdisk (access code: 63p5).
If you have any question, please email chxy95@gmail.com or join in the Wechat group of BasicSR to discuss with the authors.
153 followers · starred Apr 2022
CVPR2023 - Activating More Pixels in Image Super-Resolution Transformer TPAMI - HAT: Hybrid Attention Transformer for Image Restoration
Python
1,600
90 commits
updated Jun 2, 2024
Xiangyu Chen, Xintao Wang, Jiantao Zhou, Yu Qiao and Chao Dong
Xiangyu Chen, Xintao Wang, Wenlong Zhang, Xiangtao Kong, Jiantao Zhou, Yu Qiao and Chao Dong
Benchmark results on SRx4 without ImageNet pretraining. Mulit-Adds are calculated for a 64x64 input.
| Model | Params(M) | Multi-Adds(G) | Set5 | Set14 | BSD100 | Urban100 | Manga109 |
|---|---|---|---|---|---|---|---|
| SwinIR | 11.9 | 53.6 | 32.92 | 29.09 | 27.92 | 27.45 | 32.03 |
| HAT-S | 9.6 | 54.9 | 32.92 | 29.15 | 27.97 | 27.87 | 32.35 |
| HAT | 20.8 | 102.4 | 33.04 | 29.23 | 28.00 | 27.97 | 32.48 |
Note that:
Results produced by Real_HAT_GAN_SRx4_sharper.pth.
Comparison with the state-of-the-art Real-SR methods.
@InProceedings{chen2023activating,
author = {Chen, Xiangyu and Wang, Xintao and Zhou, Jiantao and Qiao, Yu and Dong, Chao},
title = {Activating More Pixels in Image Super-Resolution Transformer},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2023},
pages = {22367-22377}
}
@article{chen2023hat,
title={HAT: Hybrid Attention Transformer for Image Restoration},
author={Chen, Xiangyu and Wang, Xintao and Zhang, Wenlong and Kong, Xiangtao and Qiao, Yu and Zhou, Jiantao and Dong, Chao},
journal={arXiv preprint arXiv:2309.05239},
year={2023}
}
Install Pytorch first. Then,
pip install -r requirements.txt
python setup.py develop
Without implementing the codes, chaiNNer is a nice tool to run our models.
Otherwise,
./options/test for the configuration file of the model to be tested, and prepare the testing data and pretrained model.HAT_SRx4_ImageNet-pretrain.pth as an example):python hat/test.py -opt options/test/HAT_SRx4_ImageNet-pretrain.yml
The testing results will be saved in the ./results folder.
./options/test/HAT_SRx4_ImageNet-LR.yml for inference without the ground truth image.Note that the tile mode is also provided for limited GPU memory when testing. You can modify the specific settings of the tile mode in your custom testing option by referring to ./options/test/HAT_tile_example.yml.
./options/train for the configuration file of the model to train.CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --master_port=4321 hat/train.py -opt options/train/train_HAT_SRx2_from_scratch.yml --launcher pytorch
The training logs and weights will be saved in the ./experiments folder.
The inference results on benchmark datasets are available at Google Drive or Baidu Netdisk (access code: 63p5).
If you have any question, please email chxy95@gmail.com or join in the Wechat group of BasicSR to discuss with the authors.
153 followers · starred Apr 2022