diff options
author | caoxipeng <caoxipeng@kuaishou.com> | 2023-07-28 03:40:10 +0000 |
---|---|---|
committer | caoxipeng <caoxipeng@kuaishou.com> | 2023-07-28 03:40:10 +0000 |
commit | 6cc5a886ae9ff30148c43a95904accd191922afc (patch) | |
tree | 01e9497f433fe4d4c6e8232e13f4da3439c5d2dd /modules/api/api.py | |
parent | 68f336bd994bed5442ad95bad6b6ad5564a5409a (diff) | |
download | stable-diffusion-webui-gfx803-6cc5a886ae9ff30148c43a95904accd191922afc.tar.gz stable-diffusion-webui-gfx803-6cc5a886ae9ff30148c43a95904accd191922afc.tar.bz2 stable-diffusion-webui-gfx803-6cc5a886ae9ff30148c43a95904accd191922afc.zip |
Add total_tqdm clear in the end of txt2img & img2img api.
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 606db179..909ea976 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -343,6 +343,7 @@ class Api: processed = process_images(p) finally: shared.state.end() + shared.total_tqdm.clear() b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else [] @@ -402,6 +403,7 @@ class Api: processed = process_images(p) finally: shared.state.end() + shared.total_tqdm.clear() b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else [] |