mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2025-05-16 07:10:24 -07:00
update readme
This commit is contained in:
parent
8041b69fbc
commit
2bbdcc1c84
14
README.md
14
README.md
@ -65,14 +65,20 @@ Blind face restoration usually relies on facial priors, such as facial geometry
|
||||
|
||||
Download pre-trained models: [GFPGANv1.pth](https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth)
|
||||
|
||||
> wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
|
||||
```bash
|
||||
wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
|
||||
```
|
||||
|
||||
> python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
|
||||
> python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
|
||||
```bash
|
||||
python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
|
||||
|
||||
# for aligned images
|
||||
python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
|
||||
```
|
||||
|
||||
## :computer: Training
|
||||
|
||||
We provide a complete training for GFPGAN. <br>
|
||||
We provide complete training codes for GFPGAN. <br>
|
||||
You could improve it according to your own needs.
|
||||
|
||||
> python -m torch.distributed.launch --nproc_per_node=4 --master_port=22021 train.py -opt train_gfpgan_v1.yml --launcher pytorch
|
||||
|
14
README_CN.md
14
README_CN.md
@ -65,14 +65,20 @@ Blind face restoration usually relies on facial priors, such as facial geometry
|
||||
|
||||
Download pre-trained models: [GFPGANv1.pth](https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth)
|
||||
|
||||
> wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
|
||||
```bash
|
||||
wget https://github.com/TencentARC/GFPGAN/releases/download/v0.1.0/GFPGANv1.pth -P experiments/pretrained_models
|
||||
```
|
||||
|
||||
> python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
|
||||
> python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
|
||||
```bash
|
||||
python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/whole_imgs
|
||||
|
||||
# for aligned images
|
||||
python inference_gfpgan_full.py --model_path experiments/pretrained_models/GFPGANv1.pth --test_path inputs/cropped_faces --aligned
|
||||
```
|
||||
|
||||
## :computer: Training
|
||||
|
||||
We provide a complete training for GFPGAN. <br>
|
||||
We provide complete training codes for GFPGAN. <br>
|
||||
You could improve it according to your own needs.
|
||||
|
||||
> python -m torch.distributed.launch --nproc_per_node=4 --master_port=22021 train.py -opt train_gfpgan_v1.yml --launcher pytorch
|
||||
|
Loading…
x
Reference in New Issue
Block a user