[Paper] [Project Page]
Yunpeng Bai, Cairong Wang, Shuzhao Xie, Chao Dong, Chun Yuan, Zhi Wang
Tsinghua University; Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences; Shanghai AI Laboratory, Shanghai, China
🎥 Click here to watch the demo video
- Python >= 3.7 (Recommend to use Anaconda or Miniconda)
- PyTorch >= 1.7
- Option: NVIDIA GPU + CUDA
- Option: Linux
-
Clone repo
git clone https://github.com/yunpeng1998/TextIR cd TextIR -
Install dependent packages
pip install -r requirements.txt
Inference
python ./inference/inference_textIR_sr.pyWe provide the training codes for TextIR.
Procedures
- Training dataset preparation: FFHQ
Modify the configuration file options/*.yml accordingly.
- Training
python -m torch.distributed.launch --nproc_per_node=8 --master_port=22021 basicsr/train.py -opt options/train/*.yml --launcher pytorch
| Model Name | Description |
|---|---|
| ffhq-sr-1024 | 1024 human face SR model . |
| ffhq-sr-512 | 512 human face SR model. |
| CUB-sr-512 | 512 bird image SR model. |
| CUB-inpainting-256 | 256 bird image inpainting model. |
| ffhq-inpainting-256 | 256 human face image inpainting model. |
| places-inpainting-256 | 256 scene image inpainting model. |
| ImageNet-colorization-256 | 256 image colorization model. |
@article{bai2025textir,
title={Textir: A simple framework for text-based editable image restoration},
author={Bai, Yunpeng and Wang, Cairong and Xie, Shuzhao and Dong, Chao and Yuan, Chun and Wang, Zhi},
journal={IEEE Transactions on Visualization and Computer Graphics},
year={2025},
publisher={IEEE}
}
