aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-29 16:06:23 +0000
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-05-29 16:06:23 +0000
commit123641e4ec93c0cd99f7ab03f4f39ca8ae4b4cef (patch)
treed67f3a7dabe8d93bb1dd5769007c06c3939eda51
parentedd766e70ae3ea8039e7b9e24d55fbd26792ef10 (diff)
downloadstable-diffusion-webui-gfx803-123641e4ec93c0cd99f7ab03f4f39ca8ae4b4cef.tar.gz
stable-diffusion-webui-gfx803-123641e4ec93c0cd99f7ab03f4f39ca8ae4b4cef.tar.bz2
stable-diffusion-webui-gfx803-123641e4ec93c0cd99f7ab03f4f39ca8ae4b4cef.zip
Revert "fix xyz clip"
This reverts commit edd766e70ae3ea8039e7b9e24d55fbd26792ef10.
-rw-r--r--scripts/xyz_grid.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py
index 00a81060..7821cc65 100644
--- a/scripts/xyz_grid.py
+++ b/scripts/xyz_grid.py
@@ -94,10 +94,7 @@ def confirm_checkpoints(p, xs):
def apply_clip_skip(p, x, xs):
- 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]
+ opts.data["CLIP_stop_at_last_layers"] = x
def apply_upscale_latent_space(p, x, xs):