Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 860 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 860 Bytes

Unsupervised Face Super-Resolution via Gradient Enhancement and Semantic Guidance (GESGNet)

Preparation

  1. prepare unpaired data, which includes images of HR domain and LR domain
  2. use ESRGAN to transform LR domain into inter-HR domain
  3. put images of inter-HR and HR domain in a folder your_datasets, and rename them as trainA and trainB, respectively.
  4. download the pretrained face parsing model, and put it in the folder models. (The original face parsing codes can be found in https://github.com/zllrunning/face-parsing.PyTorch)

Training

python train.py --name experiment_name --dataroot /path/to/your_datasets --model GESG

Testing

python test.py --name experiment_name --dataroot /path/to/your_datasets --model GESG