aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-10-02 18:33:22 +0000
committerGitHub <noreply@github.com>2022-10-02 18:33:22 +0000
commit688c4a914a6cb152b5f5e4088bace709ed3dcc35 (patch)
tree39c3221e99ca90b7238057bc555c5b4d63fcf960 /modules/txt2img.py
parenta634c3226fd69486ce96df56f95f3fd63172305c (diff)
parent852fd90c0dcda9cb5fbbfdf0c7308ce58034935c (diff)
downloadstable-diffusion-webui-gfx803-688c4a914a6cb152b5f5e4088bace709ed3dcc35.tar.gz
stable-diffusion-webui-gfx803-688c4a914a6cb152b5f5e4088bace709ed3dcc35.tar.bz2
stable-diffusion-webui-gfx803-688c4a914a6cb152b5f5e4088bace709ed3dcc35.zip
Merge branch 'master' into 1404-script-reload-without-restart
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index 5368e4d0..d4406c3c 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -34,7 +34,9 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
denoising_strength=denoising_strength if enable_hr else None,
)
- print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
+ if cmd_opts.enable_console_prompts:
+ print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
+
processed = modules.scripts.scripts_txt2img.run(p, *args)
if processed is None: