diff options
author | Jairo Correa <jn.j41r0@gmail.com> | 2022-11-02 00:56:47 +0000 |
---|---|---|
committer | Jairo Correa <jn.j41r0@gmail.com> | 2022-11-02 00:56:47 +0000 |
commit | c9148b2312b36fee8727f5233da9dbe32aa1f58c (patch) | |
tree | 01440de3870752ef7e5e2ebef5dfa894622684ac /modules/img2img.py | |
parent | 61af311f29d0fde6db7027cf8aa68f0ae9f6455f (diff) | |
download | stable-diffusion-webui-gfx803-c9148b2312b36fee8727f5233da9dbe32aa1f58c.tar.gz stable-diffusion-webui-gfx803-c9148b2312b36fee8727f5233da9dbe32aa1f58c.tar.bz2 stable-diffusion-webui-gfx803-c9148b2312b36fee8727f5233da9dbe32aa1f58c.zip |
Release processing resources after it finishes
Diffstat (limited to 'modules/img2img.py')
-rw-r--r-- | modules/img2img.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index 35c5df9b..fac010aa 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -137,6 +137,8 @@ def img2img(mode: int, prompt: str, negative_prompt: str, prompt_style: str, pro if processed is None:
processed = process_images(p)
+ p.close()
+
shared.total_tqdm.clear()
generation_info_js = processed.js()
|