Official PyTorch implementation of the paper Learning Texture Transformer Network for Image Super-Resolution accepted in CVPR 2020.
- python 3.7 (recommend to use Anaconda)
- python packages:
pip install numpy opencv-python
- pytorch >= 1.1.0
- torchvision >= 0.4.0
Pre-trained models can be downloaded from onedrive, baidu cloud(0u6i), google drive.
- TTSR-rec.pt: trained with only reconstruction loss
- TTSR.pt: trained with all losses
- Clone this github repo
git clone https://github.com/FuzhiYang/TTSR.git
cd TTSR
- Download pre-trained models and modify "model_path" in test.sh
- Run test
sh test.sh
- The results are in "save_dir" (default:
./test/demo/output
)
- Download CUFED dataset and modify "dataset_dir" in eval.sh
- Download pre-trained models and modify "model_path" in eval.sh
- Run evaluation
sh eval.sh
- The results are in "save_dir" (default:
./eval/CUFED/TTSR
)
- Download CUFED dataset and modify "dataset_dir" in train.sh
- Run training
sh train.sh
- The training results are in "save_dir" (default:
./train/CUFED/TTSR
)
@InProceedings{yang2020learning,
author = {Yang, Fuzhi and Yang, Huan and Fu, Jianlong and Lu, Hongtao and Guo, Baining},
title = {Learning Texture Transformer Network for Image Super-Resolution},
booktitle = {CVPR},
year = {2020},
month = {June}
}
If you meet any problems, please describe them in issues or contact: