Skip to content

Commit

Permalink
fix xyz clip
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed May 28, 2023
1 parent b957dcf commit edd766e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/xyz_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit edd766e

Please sign in to comment.