File tree 2 files changed +20
-8
lines changed 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,20 @@ Blind face restoration usually relies on facial priors, such as facial geometry
65
65
66
66
Download pre-trained models: [GFPGANv1.pth](https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth)
67
67
68
- > wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
68
+ ` ` ` bash
69
+ wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
70
+ ` ` `
69
71
70
- > python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
71
- > python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
72
+ ` ` ` bash
73
+ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
74
+
75
+ # for aligned images
76
+ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
77
+ ` ` `
72
78
73
79
# # :computer: Training
74
80
75
- We provide a complete training for GFPGAN. < br>
81
+ We provide complete training codes for GFPGAN. < br>
76
82
You could improve it according to your own needs.
77
83
78
84
> python -m torch.distributed.launch --nproc_per_node=4 --master_port=22021 train.py -opt train_gfpgan_v1.yml --launcher pytorch
Original file line number Diff line number Diff line change @@ -65,14 +65,20 @@ Blind face restoration usually relies on facial priors, such as facial geometry
65
65
66
66
Download pre-trained models: [GFPGANv1.pth](https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth)
67
67
68
- > wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
68
+ ` ` ` bash
69
+ wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
70
+ ` ` `
69
71
70
- > python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
71
- > python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
72
+ ` ` ` bash
73
+ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
74
+
75
+ # for aligned images
76
+ python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
77
+ ` ` `
72
78
73
79
# # :computer: Training
74
80
75
- We provide a complete training for GFPGAN. < br>
81
+ We provide complete training codes for GFPGAN. < br>
76
82
You could improve it according to your own needs.
77
83
78
84
> python -m torch.distributed.launch --nproc_per_node=4 --master_port=22021 train.py -opt train_gfpgan_v1.yml --launcher pytorch
You can’t perform that action at this time.
0 commit comments