Skip to content

JerryYann/DPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diffusion Prior Interpolation for Flexibility Real-World Face Super-Resolution (DPI)

Aaai25 paper, experimental code. We will further improve the code in the future.

This is the codebase for Diffusion Models Beat GANS on Image Synthesis.

Download pre-trained models

From the link, download the checkpoint "ffhq_10m.pt" and paste it to ./weights/

Sampling from pre-trained models

cd scripts python -m torch.distributed.launch --nproc_per_node=1 --use_env --master_port=29522 sr_sample.py --model_path [pre_trained_path] --CRT_path [CRT_path] --h_sets [GT/Real-World Path] --downsampling 8 --out_path [out_path]

Training your CRT

cd scripts python -m torch.distributed.launch --nproc_per_node=1 --use_env --master_port=29522 image_train.py --data_dir [Your_training_sets] --batch_size 32 --lr_anneal_steps 100000

About

tmp DPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages