From 681f61e1599e8a42bf3294e3604102a9cde08077 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 29 Feb 2024 15:41:11 +0100 Subject: [PATCH] fix: add default return values when preset download is disabled https://github.com/mashb1t/Fooocus/issues/20 --- launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 5fd1c547..41bea44c 100644 --- a/launch.py +++ b/launch.py @@ -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)):