diff options
author | Keavon Chambers <keavon@keavon.com> | 2022-11-19 18:34:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 18:34:31 +0000 |
commit | 2f90496b19cd9c512633742db97b072a7075f017 (patch) | |
tree | 60d2dddd69172d9b5cf58c8da2bd64c61132f4fa /scripts/prompt_matrix.py | |
parent | a258fd60dbe2d68325339405a2aa72816d06d2fd (diff) | |
parent | 47a44c7e421b98ca07e92dbf88769b04c9e28f86 (diff) | |
download | stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.tar.gz stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.tar.bz2 stable-diffusion-webui-gfx803-2f90496b19cd9c512633742db97b072a7075f017.zip |
Merge branch 'master' into cors-regex
Diffstat (limited to 'scripts/prompt_matrix.py')
-rw-r--r-- | scripts/prompt_matrix.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/prompt_matrix.py b/scripts/prompt_matrix.py index e49c9b20..4d1e152d 100644 --- a/scripts/prompt_matrix.py +++ b/scripts/prompt_matrix.py @@ -80,6 +80,8 @@ class Script(scripts.Script): grid = images.image_grid(processed.images, p.batch_size, rows=1 << ((len(prompt_matrix_parts) - 1) // 2))
grid = images.draw_prompt_matrix(grid, p.width, p.height, prompt_matrix_parts)
processed.images.insert(0, grid)
+ processed.index_of_first_image = 1
+ processed.infotexts.insert(0, processed.infotexts[0])
if opts.grid_save:
images.save_image(processed.images[0], p.outpath_grids, "prompt_matrix", prompt=original_prompt, seed=processed.seed, grid=True, p=p)
|