diff options
author | Johan Aires Rastén <johan@oljud.se> | 2022-09-22 10:47:16 +0200 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-22 16:34:54 +0300 |
commit | a213d3a21c9e37297fdcb2c2b48bd24290a479cf (patch) | |
tree | c5b3ea28b67e24da27dab00ac10fd865f1a9f9bc /modules/img2img.py | |
parent | 34d5a31ea2bdb9348057425160de9439dcc208a1 (diff) |
Add option to always log generation info
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index 91689232..bce8b712 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -118,4 +118,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro 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)
\ No newline at end of file |