Skip to content

yunpeng1998/TextIR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 (TVCG 2025) TextIR: A Simple Framework for Text-based Editable Image Restoration

[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

Image

Results

🎥 Click here to watch the demo video


Dependencies and Installation

Installation

  1. Clone repo

    git clone https://github.com/yunpeng1998/TextIR
    cd TextIR
  2. Install dependent packages

    pip install -r requirements.txt

Inference

Inference

python ./inference/inference_textIR_sr.py

Training

We provide the training codes for TextIR.

Procedures

  1. Training dataset preparation: FFHQ

Modify the configuration file options/*.yml accordingly.

  1. Training

python -m torch.distributed.launch --nproc_per_node=8 --master_port=22021 basicsr/train.py -opt options/train/*.yml --launcher pytorch

Model Zoo

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.

BibTeX

@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}
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors