aboutsummaryrefslogtreecommitdiffstats
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorRobin Fernandes <robin@soal.org>2022-09-23 00:54:32 +0000
committerRobin Fernandes <robin@soal.org>2022-09-23 00:54:32 +0000
commit03738668c08852d717b0564fc0c3da89877e52b8 (patch)
tree975bd8f2f610901ee45a5c3d1885d93074cdddc2 /modules/img2img.py
parent25eb1e3d9072a060a253abce6889e7fef440dfe1 (diff)
parent19fc3e82794245b663467a9be076271f6ae33f26 (diff)
downloadstable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.tar.gz
stable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.tar.bz2
stable-diffusion-webui-gfx803-03738668c08852d717b0564fc0c3da89877e52b8.zip
Merge from master
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py6
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