Commit 161b2944 authored by Kamil Krzyżanowski's avatar Kamil Krzyżanowski

Use name instead of hash in xyz_grid

X/Y/Z grid was still using the old hash, prone to collisions. This changes it to use the name instead.

Should fix #10521.
parent 89f9faa6
...@@ -86,7 +86,7 @@ def apply_checkpoint(p, x, xs): ...@@ -86,7 +86,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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment