Merge pull request #12124 from Xstephen/master

Add total_tqdm clear in the end of txt2img & img2img api.
This commit is contained in:
AUTOMATIC1111 2023-07-29 07:44:00 +03:00 committed by GitHub
commit 19ac0adf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 []