aboutsummaryrefslogtreecommitdiffstats
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-02 04:30:03 +0000
committerGitHub <noreply@github.com>2022-11-02 04:30:03 +0000
commit65522ff157e4be4095a99421da04ecb0749824ac (patch)
treecac5086113fe5fd751416a754da83ce4a44e4b16 /modules/img2img.py
parent10f62546d30913ad7fde5d77ed39e864b84bb856 (diff)
parentc9148b2312b36fee8727f5233da9dbe32aa1f58c (diff)
downloadstable-diffusion-webui-gfx803-65522ff157e4be4095a99421da04ecb0749824ac.tar.gz
stable-diffusion-webui-gfx803-65522ff157e4be4095a99421da04ecb0749824ac.tar.bz2
stable-diffusion-webui-gfx803-65522ff157e4be4095a99421da04ecb0749824ac.zip
Merge pull request #4142 from jn-jairo/processing-close
Release processing resources after it finishes
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py2
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()