From a213d3a21c9e37297fdcb2c2b48bd24290a479cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Aires=20Rast=C3=A9n?= Date: Thu, 22 Sep 2022 10:47:16 +0200 Subject: Add option to always log generation info --- modules/txt2img.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/txt2img.py') 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) -- cgit v1.2.3