aboutsummaryrefslogtreecommitdiff
path: root/scripts/xy_grid.py
diff options
context:
space:
mode:
authorrandom_thoughtss <random_thoughtss@proton.me>2022-10-20 16:01:27 -0700
committerrandom_thoughtss <random_thoughtss@proton.me>2022-10-20 16:01:27 -0700
commit49533eed9e3aad19e9868ee140708baec4fd44be (patch)
treeed3bc901e9e63da9e6ff005c0af937d331c03c83 /scripts/xy_grid.py
parent708c3a7bd8ce68cbe1aa7c268e5a4b1980affc9f (diff)
XY grid correctly re-assignes model when config changes
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r--scripts/xy_grid.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py
index 5cca168a..eff0c942 100644
--- a/scripts/xy_grid.py
+++ b/scripts/xy_grid.py
@@ -89,6 +89,7 @@ def apply_checkpoint(p, x, xs):
if info is None:
raise RuntimeError(f"Unknown checkpoint: {x}")
modules.sd_models.reload_model_weights(shared.sd_model, info)
+ p.sd_model = shared.sd_model
def confirm_checkpoints(p, xs):