Upgrade GFPGAN to Version 1.4

This commit is contained in:
blessedcoolant
2022-09-23 22:20:05 +12:00
committed by Lincoln Stein
parent d117d23469
commit 53b4c3cc60
8 changed files with 260 additions and 159 deletions

View File

@ -87,8 +87,8 @@ if gfpgan:
try:
import urllib.request
model_url = 'https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth'
model_dest = 'src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth'
model_url = 'https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth'
model_dest = 'src/gfpgan/experiments/pretrained_models/GFPGANv1.4.pth'
if not os.path.exists(model_dest):
print('downloading gfpgan model file...')