diff options
author | Liam <liamthekerr@gmail.com> | 2022-11-09 20:24:31 +0000 |
---|---|---|
committer | Liam <liamthekerr@gmail.com> | 2022-11-09 20:24:31 +0000 |
commit | 81f2575df91a50e4aa9ca816e02e3f77342eedc8 (patch) | |
tree | 51abe029278f19c2d5523f2168e99d09bede39ab /scripts/prompt_matrix.py | |
parent | ac085628540d0ec6a988fad93f5b8f2154209571 (diff) | |
download | stable-diffusion-webui-gfx803-81f2575df91a50e4aa9ca816e02e3f77342eedc8.tar.gz stable-diffusion-webui-gfx803-81f2575df91a50e4aa9ca816e02e3f77342eedc8.tar.bz2 stable-diffusion-webui-gfx803-81f2575df91a50e4aa9ca816e02e3f77342eedc8.zip |
updating the displayed generation info when user clicks images in the gallery. feature request 4415
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)
|