mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Add total_tqdm clear in the end of txt2img & img2img api.
This commit is contained in:
parent
68f336bd99
commit
6cc5a886ae
@ -343,6 +343,7 @@ class Api:
|
|||||||
processed = process_images(p)
|
processed = process_images(p)
|
||||||
finally:
|
finally:
|
||||||
shared.state.end()
|
shared.state.end()
|
||||||
|
shared.total_tqdm.clear()
|
||||||
|
|
||||||
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
|
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
|
||||||
|
|
||||||
@ -402,6 +403,7 @@ class Api:
|
|||||||
processed = process_images(p)
|
processed = process_images(p)
|
||||||
finally:
|
finally:
|
||||||
shared.state.end()
|
shared.state.end()
|
||||||
|
shared.total_tqdm.clear()
|
||||||
|
|
||||||
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
|
b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user