Skip to content

Commit edd766e

Browse files
committed
fix xyz clip
1 parent b957dcf commit edd766e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/xyz_grid.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ def confirm_checkpoints(p, xs):
9494

9595

9696
def apply_clip_skip(p, x, xs):
97-
opts.data["CLIP_stop_at_last_layers"] = x
97+
if opts.data["CLIP_stop_at_last_layers"] != x:
98+
opts.data["CLIP_stop_at_last_layers"] = x
99+
p.cached_c = [None, None]
100+
p.cached_uc = [None, None]
98101

99102

100103
def apply_upscale_latent_space(p, x, xs):

0 commit comments

Comments
 (0)