fixed incorrect message about loading config; thanks anon!

This commit is contained in:
AUTOMATIC 2022-10-09 10:31:47 +03:00
parent c77c89cc83
commit 4e569fd888
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def load_model():
checkpoint_info = select_checkpoint() checkpoint_info = select_checkpoint()
if checkpoint_info.config != shared.cmd_opts.config: if checkpoint_info.config != shared.cmd_opts.config:
print(f"Loading config from: {shared.cmd_opts.config}") print(f"Loading config from: {checkpoint_info.config}")
sd_config = OmegaConf.load(checkpoint_info.config) sd_config = OmegaConf.load(checkpoint_info.config)
sd_model = instantiate_from_config(sd_config.model) sd_model = instantiate_from_config(sd_config.model)