mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user