Clip skip variable name change breaks x/y plot script. This fixes that
This commit is contained in:
parent
1824e9ee3a
commit
84ddd44113
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ def apply_hypernetwork(p, x, xs):
|
||||||
|
|
||||||
|
|
||||||
def apply_clip_skip(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):
|
def format_value_add_label(p, opt, x):
|
||||||
|
@ -206,7 +206,7 @@ class Script(scripts.Script):
|
||||||
modules.processing.fix_seed(p)
|
modules.processing.fix_seed(p)
|
||||||
|
|
||||||
p.batch_size = 1
|
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):
|
def process_axis(opt, vals):
|
||||||
if opt.label == 'Nothing':
|
if opt.label == 'Nothing':
|
||||||
|
@ -327,6 +327,6 @@ class Script(scripts.Script):
|
||||||
|
|
||||||
hypernetwork.load_hypernetwork(opts.sd_hypernetwork)
|
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
|
return processed
|
||||||
|
|
Loading…
Reference in a new issue