aboutsummaryrefslogtreecommitdiff
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorJohannesGaessler <johannesg@5d6.de>2022-09-08 15:37:13 +0200
committerJohannesGaessler <johannesg@5d6.de>2022-09-08 17:05:17 +0200
commitf211c498b9d496222aa36360193e0f690053dfa4 (patch)
treef215cb60083359e2679f8e38244d005cccf64725 /modules/txt2img.py
parentad02b249f5bf8e494c35a313f44515b7b1e6739d (diff)
More informative progress printing
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 fd81ff0f..410a7a7b 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -25,6 +25,7 @@ def txt2img(prompt: str, negative_prompt: str, steps: int, sampler_index: int, r
tiling=tiling,
)
+ print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
processed = modules.scripts.scripts_txt2img.run(p, *args)
if processed is not None:
@@ -32,5 +33,7 @@ def txt2img(prompt: str, negative_prompt: str, steps: int, sampler_index: int, r
else:
processed = process_images(p)
+ shared.total_tqdm.clear()
+
return processed.images, processed.js(), plaintext_to_html(processed.info)