aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/xy_grid.py
diff options
context:
space:
mode:
authorFampai <unknown>2022-10-09 18:57:17 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-09 19:31:23 +0000
commit84ddd44113b36062e8ba6cb2e5db0fce4f48efb8 (patch)
tree4c8ffe6d41cfba5e6ed2c7f6ae870f26eb06d773 /scripts/xy_grid.py
parent1824e9ee3ab4f94aee8908a62ea2569a01aeb3d7 (diff)
downloadstable-diffusion-webui-gfx803-84ddd44113b36062e8ba6cb2e5db0fce4f48efb8.tar.gz
stable-diffusion-webui-gfx803-84ddd44113b36062e8ba6cb2e5db0fce4f48efb8.tar.bz2
stable-diffusion-webui-gfx803-84ddd44113b36062e8ba6cb2e5db0fce4f48efb8.zip
Clip skip variable name change breaks x/y plot script. This fixes that
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r--scripts/xy_grid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py
index 7b0d9083..771eb8e4 100644
--- a/scripts/xy_grid.py
+++ b/scripts/xy_grid.py
@@ -84,7 +84,7 @@ def apply_hypernetwork(p, x, xs):
def apply_clip_skip(p, x, xs):
- opts.data["CLIP_ignore_last_layers"] = x
+ opts.data["CLIP_stop_at_last_layers"] = x
def format_value_add_label(p, opt, x):
@@ -206,7 +206,7 @@ class Script(scripts.Script):
modules.processing.fix_seed(p)
p.batch_size = 1
- CLIP_ignore_last_layers = opts.CLIP_ignore_last_layers
+ CLIP_stop_at_last_layers = opts.CLIP_stop_at_last_layers
def process_axis(opt, vals):
if opt.label == 'Nothing':
@@ -327,6 +327,6 @@ class Script(scripts.Script):
hypernetwork.load_hypernetwork(opts.sd_hypernetwork)
- opts.data["CLIP_ignore_last_layers"] = CLIP_ignore_last_layers
+ opts.data["CLIP_stop_at_last_layers"] = CLIP_stop_at_last_layers
return processed