fix: add default return values when preset download is disabled

https://github.com/mashb1t/Fooocus/issues/20
This commit is contained in:
Manuel Schmid 2024-02-29 15:41:11 +01:00
parent 6031f85f49
commit 681f61e159
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def download_models(default_model, previous_default_models, checkpoint_downloads
if args.disable_preset_download:
print('Skipped model download.')
return
return default_model, checkpoint_downloads
if not args.always_download_new_model:
if not os.path.exists(os.path.join(config.path_checkpoints, default_model)):