fix: add default return values when preset download is disabled
https://github.com/mashb1t/Fooocus/issues/20
This commit is contained in:
parent
6031f85f49
commit
681f61e159
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue