Merge pull request #9965 from AUTOMATIC1111/xyz_checkpoint_override

XYZ checkpoint switch via Override
This commit is contained in:
AUTOMATIC1111 2023-05-01 12:47:30 +03:00 committed by GitHub
commit a7aa046016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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