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/img2img.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/img2img.py') 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 -- cgit v1.2.3