aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorJohan Aires Rastén <johan@oljud.se>2022-09-22 08:47:16 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-22 13:34:54 +0000
commita213d3a21c9e37297fdcb2c2b48bd24290a479cf (patch)
treec5b3ea28b67e24da27dab00ac10fd865f1a9f9bc /modules/txt2img.py
parent34d5a31ea2bdb9348057425160de9439dcc208a1 (diff)
downloadstable-diffusion-webui-gfx803-a213d3a21c9e37297fdcb2c2b48bd24290a479cf.tar.gz
stable-diffusion-webui-gfx803-a213d3a21c9e37297fdcb2c2b48bd24290a479cf.tar.bz2
stable-diffusion-webui-gfx803-a213d3a21c9e37297fdcb2c2b48bd24290a479cf.zip
Add option to always log generation info
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 9123fca1..d2cf39ef 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -44,5 +44,9 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
shared.total_tqdm.clear()
- return processed.images, processed.js(), plaintext_to_html(processed.info)
+ generation_info_js = processed.js()
+ if opts.samples_log_stdout:
+ print(generation_info_js)
+
+ return processed.images, generation_info_js, plaintext_to_html(processed.info)