added --disable-console-progressbars to disable progressbars in console

disabled printing prompts to console by default, enabled by --enable-console-prompts
This commit is contained in:
AUTOMATIC
2022-10-02 20:23:40 +03:00
parent 4ec4af6e0b
commit 3ff0de2c59
4 changed files with 17 additions and 6 deletions

View File

@@ -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: