diff options
author | Kamil Krzyżanowski <kamnxt@kamnxt.com> | 2023-05-18 19:38:30 +0000 |
---|---|---|
committer | Kamil Krzyżanowski <kamnxt@kamnxt.com> | 2023-05-18 20:27:04 +0000 |
commit | 161b2944b8b998698efa991f6ee71f0b7af04cda (patch) | |
tree | 27046e986467792e0552200c5df5c4ecd2b8f1bc /scripts | |
parent | 89f9faa63388756314e8a1d96cf86bf5e0663045 (diff) | |
download | stable-diffusion-webui-gfx803-161b2944b8b998698efa991f6ee71f0b7af04cda.tar.gz stable-diffusion-webui-gfx803-161b2944b8b998698efa991f6ee71f0b7af04cda.tar.bz2 stable-diffusion-webui-gfx803-161b2944b8b998698efa991f6ee71f0b7af04cda.zip |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/xyz_grid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index a725d74a..db768fd2 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -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}")
- p.override_settings['sd_model_checkpoint'] = info.hash
+ p.override_settings['sd_model_checkpoint'] = info.name
def confirm_checkpoints(p, xs):
|