diff options
author | Brendan Byrd <GitHub@ResonatorSoft.org> | 2022-10-06 23:31:36 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-09 09:43:56 +0000 |
commit | a65a45272e8f26ee3bc52a5300b396266508a9a5 (patch) | |
tree | 6b6d4ce39f56ccf71a8e1110ef2de8b54135699d | |
parent | d74c38108f95e44d83a1706ee5ab218124972868 (diff) | |
download | stable-diffusion-webui-gfx803-a65a45272e8f26ee3bc52a5300b396266508a9a5.tar.gz stable-diffusion-webui-gfx803-a65a45272e8f26ee3bc52a5300b396266508a9a5.tar.bz2 stable-diffusion-webui-gfx803-a65a45272e8f26ee3bc52a5300b396266508a9a5.zip |
Don't change the seed initially if "Keep -1 for seeds" is checked
Fixes #1049
-rw-r--r-- | scripts/xy_grid.py | 4 |
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
|