diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-04 15:57:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 15:57:37 +0000 |
commit | 3f23e6dabe688c70a7461eabae0eaa6b31eed8de (patch) | |
tree | d4d5f1a9705e59eef5029cc1be3bff57fbd389c2 /scripts/xy_grid.py | |
parent | 3dae545a03f5102ba5d9c3f27bb6241824c5a916 (diff) | |
parent | 32547f2721c92794779e6ff9fb325243d5857cae (diff) | |
download | stable-diffusion-webui-gfx803-3f23e6dabe688c70a7461eabae0eaa6b31eed8de.tar.gz stable-diffusion-webui-gfx803-3f23e6dabe688c70a7461eabae0eaa6b31eed8de.tar.bz2 stable-diffusion-webui-gfx803-3f23e6dabe688c70a7461eabae0eaa6b31eed8de.zip |
Merge pull request #1476 from RnDMonkey/xygrid_infotext_improvements
[xy_grid] script infotext improvements
Diffstat (limited to 'scripts/xy_grid.py')
-rw-r--r-- | scripts/xy_grid.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index f92f9776..59907f0b 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -410,6 +410,18 @@ class Script(scripts.Script): return process_images(pc)
+ if not x_opt.label == 'Nothing':
+ p.extra_generation_params["XY Plot X Type"] = x_opt.label
+ p.extra_generation_params["XY Plot X Values"] = '{' + x_values + '}'
+ if x_opt.label in ["Seed","Var. seed"] and not no_fixed_seeds:
+ p.extra_generation_params["XY Plot Fixed X Values"] = '{' + ", ".join([str(x) for x in xs])+ '}'
+
+ if not y_opt.label == 'Nothing':
+ p.extra_generation_params["XY Plot Y Type"] = y_opt.label
+ p.extra_generation_params["XY Plot Y Values"] = '{' + y_values + '}'
+ if y_opt.label in ["Seed","Var. seed"] and not no_fixed_seeds:
+ p.extra_generation_params["XY Plot Fixed Y Values"] = '{' + ", ".join([str(y) for y in ys])+ '}'
+
with SharedSettingsStackHelper():
processed = draw_xy_grid(
p,
|