mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-08 08:42:08 -08:00
updating the displayed generation info when user clicks images in the gallery. feature request 4415
This commit is contained in:
parent
ac08562854
commit
81f2575df9
4 changed files with 36 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -145,6 +145,8 @@ class Script(scripts.Script):
|
|||
state.job_count = job_count
|
||||
|
||||
images = []
|
||||
all_prompts = []
|
||||
infotexts = []
|
||||
for n, args in enumerate(jobs):
|
||||
state.job = f"{state.job_no + 1} out of {state.job_count}"
|
||||
|
||||
|
|
@ -157,5 +159,7 @@ class Script(scripts.Script):
|
|||
|
||||
if checkbox_iterate:
|
||||
p.seed = p.seed + (p.batch_size * p.n_iter)
|
||||
all_prompts += proc.all_prompts
|
||||
infotexts += proc.infotexts
|
||||
|
||||
return Processed(p, images, p.seed, "")
|
||||
return Processed(p, images, p.seed, "", all_prompts=all_prompts, infotexts=infotexts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue