mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
preload script more robust for downloading gfpgan
This commit is contained in:
parent
3feda31d82
commit
488890e6bb
@ -72,6 +72,7 @@ if gfpgan:
|
|||||||
|
|
||||||
if not os.path.exists(model_dest):
|
if not os.path.exists(model_dest):
|
||||||
print('downloading gfpgan model file...')
|
print('downloading gfpgan model file...')
|
||||||
|
os.makedirs(os.path.dirname(model_dest))
|
||||||
urllib.request.urlretrieve(model_url,model_dest)
|
urllib.request.urlretrieve(model_url,model_dest)
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
|
Loading…
Reference in New Issue
Block a user