diff options
author | Johan Aires Rastén <johan@oljud.se> | 2022-09-22 08:47:16 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-22 13:34:54 +0000 |
commit | a213d3a21c9e37297fdcb2c2b48bd24290a479cf (patch) | |
tree | c5b3ea28b67e24da27dab00ac10fd865f1a9f9bc /modules/txt2img.py | |
parent | 34d5a31ea2bdb9348057425160de9439dcc208a1 (diff) | |
download | stable-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.py | 6 |
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)
|