aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-04 14:23:48 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-04 14:23:48 +0000
commit957e29a8e9cb8ca069799ec69263e188c89ed6a6 (patch)
tree75223802583c2085d2b57fd028a90bec4ed2adde /modules/txt2img.py
parent52cef36f6ba169a8e606ecdcaed73d47378f0e8e (diff)
downloadstable-diffusion-webui-gfx803-957e29a8e9cb8ca069799ec69263e188c89ed6a6.tar.gz
stable-diffusion-webui-gfx803-957e29a8e9cb8ca069799ec69263e188c89ed6a6.tar.bz2
stable-diffusion-webui-gfx803-957e29a8e9cb8ca069799ec69263e188c89ed6a6.zip
option to not show images in web ui
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index d4406c3c..e985242b 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -48,5 +48,8 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
if opts.samples_log_stdout:
print(generation_info_js)
+ if opts.do_not_show_images:
+ processed.images = []
+
return processed.images, generation_info_js, plaintext_to_html(processed.info)