Merge pull request #2151 from BinaryQuantumSoul/patch-1

Remove error for loading UI without any model if --no-download is used
This commit is contained in:
Vladimir Mandic
2023-09-07 23:47:24 -04:00
committed by GitHub
+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