diff options
author | ramyma <ramy.mahmoudi@gmail.com> | 2023-07-02 01:59:59 +0000 |
---|---|---|
committer | ramyma <ramy.mahmoudi@gmail.com> | 2023-07-02 01:59:59 +0000 |
commit | 74d001bc68c2106aa963e3474eee70327b8f3760 (patch) | |
tree | 1525178c0a0f1822047596b3c4881dd31ee6fd9e /modules/api | |
parent | fab73f2e7d388ca99cdb3d5de7f36c0b9a1a3b1c (diff) | |
download | stable-diffusion-webui-gfx803-74d001bc68c2106aa963e3474eee70327b8f3760.tar.gz stable-diffusion-webui-gfx803-74d001bc68c2106aa963e3474eee70327b8f3760.tar.bz2 stable-diffusion-webui-gfx803-74d001bc68c2106aa963e3474eee70327b8f3760.zip |
Hotfix: call processing close to cleanup API generation calls
Diffstat (limited to 'modules/api')
-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 279c384a..f10e3fe3 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -335,6 +335,7 @@ class Api: p.script_args = tuple(script_args) # Need to pass args as tuple here processed = process_images(p) shared.state.end() + p.close() b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else [] @@ -392,6 +393,7 @@ class Api: p.script_args = tuple(script_args) # Need to pass args as tuple here processed = process_images(p) shared.state.end() + p.close() b64images = list(map(encode_pil_to_base64, processed.images)) if send_images else [] |