option to not show images in web ui

This commit is contained in:
AUTOMATIC
2022-10-04 17:23:48 +03:00
parent 52cef36f6b
commit 957e29a8e9
3 changed files with 7 additions and 0 deletions

View File

@@ -129,4 +129,7 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro
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)