diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-28 20:40:38 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-05-28 20:40:38 +0000 |
commit | edd766e70ae3ea8039e7b9e24d55fbd26792ef10 (patch) | |
tree | c7734a8402ccd2a948703db2e47f6cffbae7fbb2 | |
parent | b957dcfece29c84ac0cfcd5a69475ff8684c531f (diff) | |
download | stable-diffusion-webui-gfx803-edd766e70ae3ea8039e7b9e24d55fbd26792ef10.tar.gz stable-diffusion-webui-gfx803-edd766e70ae3ea8039e7b9e24d55fbd26792ef10.tar.bz2 stable-diffusion-webui-gfx803-edd766e70ae3ea8039e7b9e24d55fbd26792ef10.zip |
fix xyz clip
-rw-r--r-- | scripts/xyz_grid.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 7821cc65..00a81060 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -94,7 +94,10 @@ def confirm_checkpoints(p, xs): def apply_clip_skip(p, x, xs):
- opts.data["CLIP_stop_at_last_layers"] = x
+ if opts.data["CLIP_stop_at_last_layers"] != x:
+ opts.data["CLIP_stop_at_last_layers"] = x
+ p.cached_c = [None, None]
+ p.cached_uc = [None, None]
def apply_upscale_latent_space(p, x, xs):
|