aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorcaoxipeng <caoxipeng@kuaishou.com>2023-07-28 03:40:10 +0000
committercaoxipeng <caoxipeng@kuaishou.com>2023-07-28 03:40:10 +0000
commit6cc5a886ae9ff30148c43a95904accd191922afc (patch)
tree01e9497f433fe4d4c6e8232e13f4da3439c5d2dd /modules
parent68f336bd994bed5442ad95bad6b6ad5564a5409a (diff)
downloadstable-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')
-rw-r--r--modules/api/api.py2
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 []