mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Gfpgan download fix (#655)
* restore ability to save files to directories named after prompt * don't download gfpgan model file if it exists - Fixes #647
This commit is contained in:
parent
3c4c4d71c9
commit
062f3e8f31
@ -89,8 +89,9 @@ if gfpgan:
|
||||
import urllib.request
|
||||
model_path = 'https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth'
|
||||
model_dest = 'src/gfpgan/experiments/pretrained_models/GFPGANv1.3.pth'
|
||||
print('downloading gfpgan model file...')
|
||||
urllib.request.urlretrieve(model_path,model_dest)
|
||||
if not os.path.exists(model_dest):
|
||||
print('downloading gfpgan model file...')
|
||||
urllib.request.urlretrieve(model_path,model_dest)
|
||||
except Exception:
|
||||
import traceback
|
||||
print('Error loading GFPGAN:')
|
||||
|
Loading…
Reference in New Issue
Block a user