Don't change the seed initially if "Keep -1 for seeds" is checked

Fixes #1049
This commit is contained in:
Brendan Byrd 2022-10-06 19:31:36 -04:00 committed by AUTOMATIC1111
parent d74c38108f
commit a65a45272e

View File

@ -198,7 +198,9 @@ class Script(scripts.Script):
return [x_type, x_values, y_type, y_values, draw_legend, no_fixed_seeds]
def run(self, p, x_type, x_values, y_type, y_values, draw_legend, no_fixed_seeds):
modules.processing.fix_seed(p)
if not no_fixed_seeds:
modules.processing.fix_seed(p)
p.batch_size = 1
initial_hn = opts.sd_hypernetwork