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/prompts_from_file.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/prompts_from_file.py')
-rw-r--r-- | scripts/prompts_from_file.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/prompts_from_file.py b/scripts/prompts_from_file.py index 3388bc77..32fe6bdb 100644 --- a/scripts/prompts_from_file.py +++ b/scripts/prompts_from_file.py @@ -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)
|