Update sd_models.py

If user uses --no-download, they most-likely don't need the error for not having any local models
This commit is contained in:
QuantumSoul
2023-09-08 04:23:56 +02:00
committed by GitHub
parent 12c2f4d6ee
commit 36f134ddd4
+1 -1
View File
@@ -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 <path-to-checkpoint> to force using existing checkpoint")
return None