diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-08 15:34:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 15:34:45 +0000 |
commit | 701f76b29ab8fa9c1d35ae8abce36b99e12d5d08 (patch) | |
tree | 3e33549ed05939484f9f476cb6fa14df87903fb4 /modules/txt2img.py | |
parent | 20b86e81c397a885b8e6ea4fe3af63c73b86afc0 (diff) | |
parent | f211c498b9d496222aa36360193e0f690053dfa4 (diff) | |
download | stable-diffusion-webui-gfx803-701f76b29ab8fa9c1d35ae8abce36b99e12d5d08.tar.gz stable-diffusion-webui-gfx803-701f76b29ab8fa9c1d35ae8abce36b99e12d5d08.tar.bz2 stable-diffusion-webui-gfx803-701f76b29ab8fa9c1d35ae8abce36b99e12d5d08.zip |
Merge pull request #158 from JohannesGaessler/progress-printing
More informative progress printing
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 3 |
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)
|