diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-02 18:33:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 18:33:22 +0000 |
commit | 688c4a914a6cb152b5f5e4088bace709ed3dcc35 (patch) | |
tree | 39c3221e99ca90b7238057bc555c5b4d63fcf960 /modules/txt2img.py | |
parent | a634c3226fd69486ce96df56f95f3fd63172305c (diff) | |
parent | 852fd90c0dcda9cb5fbbfdf0c7308ce58034935c (diff) | |
download | stable-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.py | 4 |
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:
|