未验证 提交 19ac0adf 编写于 作者: A AUTOMATIC1111 提交者: GitHub

Merge pull request #12124 from Xstephen/master

Add total_tqdm clear in the end of txt2img & img2img api.
......@@ -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 []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册