From 36f134ddd4d5d5811d0c88a024e2006a2cdd7cab Mon Sep 17 00:00:00 2001 From: QuantumSoul Date: Fri, 8 Sep 2023 04:23:56 +0200 Subject: [PATCH] Update sd_models.py If user uses --no-download, they most-likely don't need the error for not having any local models --- modules/sd_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sd_models.py b/modules/sd_models.py index 3243d4951..72422b498 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -256,7 +256,7 @@ def select_checkpoint(op='model'): if checkpoint_info is not None: shared.log.debug(f'Select checkpoint: {op} {checkpoint_info.title if checkpoint_info is not None else None}') return checkpoint_info - if len(checkpoints_list) == 0: + if len(checkpoints_list) == 0 and not shared.cmd_opts.no_download: shared.log.error("Cannot run without a checkpoint") shared.log.error("Use --ckpt to force using existing checkpoint") return None