mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
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:
@@ -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