aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Byrd <GitHub@ResonatorSoft.org>2022-10-06 19:31:36 -0400
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-09 12:43:56 +0300
commita65a45272e8f26ee3bc52a5300b396266508a9a5 (patch)
tree6b6d4ce39f56ccf71a8e1110ef2de8b54135699d
parentd74c38108f95e44d83a1706ee5ab218124972868 (diff)
Don't change the seed initially if "Keep -1 for seeds" is checked
Fixes #1049
-rw-r--r--scripts/xy_grid.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py
index 07040886..a8f53bef 100644
--- a/scripts/xy_grid.py
+++ b/scripts/xy_grid.py
@@ -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