Merge pull request #10382 from AUTOMATIC1111/fix_xyz_checkpoint

fix xyz checkpoint
This commit is contained in:
AUTOMATIC1111 2023-05-14 19:01:36 +03:00 committed by GitHub
commit 1b7e787733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ def apply_checkpoint(p, x, xs):
info = modules.sd_models.get_closet_checkpoint_match(x) info = modules.sd_models.get_closet_checkpoint_match(x)
if info is None: if info is None:
raise RuntimeError(f"Unknown checkpoint: {x}") raise RuntimeError(f"Unknown checkpoint: {x}")
p.override_settings['sd_model_checkpoint'] = info.hash p.override_settings['sd_model_checkpoint'] = info.name
def confirm_checkpoints(p, xs): def confirm_checkpoints(p, xs):