This commit is contained in:
Vladimir Mandic
2023-09-23 10:15:06 -04:00
parent ea8a88370e
commit 257601bbb8
5 changed files with 39 additions and 15 deletions
+2 -2
View File
@@ -246,7 +246,7 @@ def select_checkpoint(op='model'):
return None
checkpoint_info = get_closet_checkpoint_match(model_checkpoint)
if checkpoint_info is not None:
shared.log.debug(f'Select checkpoint: {op}="{checkpoint_info.title if checkpoint_info is not None else None}"')
shared.log.info(f'Select model: {op}="{checkpoint_info.title if checkpoint_info is not None else None}"')
return checkpoint_info
if len(checkpoints_list) == 0 and not shared.cmd_opts.no_download:
shared.log.error("Cannot run without a checkpoint")
@@ -260,7 +260,7 @@ def select_checkpoint(op='model'):
shared.log.info("Selecting first available checkpoint")
# shared.log.warning(f"Loading fallback checkpoint: {checkpoint_info.title}")
shared.opts.data['sd_model_checkpoint'] = checkpoint_info.title
shared.log.debug(f'Select checkpoint: {op}="{checkpoint_info.title if checkpoint_info is not None else None}"')
shared.log.info(f'Select model: {op}="{checkpoint_info.title if checkpoint_info is not None else None}"')
return checkpoint_info