代码复现:GFPGAN

运行

1
python inference_gfpgan.py

带参数(默认)

带参数(默认)

1
python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1.3 -s 2

说明

1
2
3
4
5
6
7
8
9
10
11
12
13
Usage: python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1.3 -s 2 [options]...

-h show this help
-i input Input image or folder. Default: inputs/whole_imgs
-o output Output folder. Default: results
-v version GFPGAN model version. Option: 1 | 1.2 | 1.3. Default: 1.3
-s upscale The final upsampling scale of the image. Default: 2
-bg_upsampler background upsampler. Default: realesrgan
-bg_tile Tile size for background sampler, 0 for no tile during testing. Default: 400
-suffix Suffix of the restored faces
-only_center_face Only restore the center face
-aligned Input are aligned faces
-ext Image extension. Options: auto | jpg | png, auto means using the same extension as inputs. Default: auto

代码复现:GFPGAN
http://lian-shuo.github.io/2023/01/14/代码复现:GFPGAN/
作者
LianShuo
发布于
2023年1月14日
许可协议