aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorAngelBottomless <35677394+aria1th@users.noreply.github.com>2022-11-02 13:18:31 +0000
committerGitHub <noreply@github.com>2022-11-02 13:18:31 +0000
commit10b280e9a21d7bbe854b212164b955444610743f (patch)
treeb1807fb11220f2607305ba47172b41c87441007a /modules/txt2img.py
parent9b5f85ac83f864310fe19c9deab6670bad695b0d (diff)
parent172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff)
downloadstable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.gz
stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.bz2
stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.zip
Merge branch 'AUTOMATIC1111:master' into force-push-patch-13
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r--modules/txt2img.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py
index c9d5a090..8e4e8677 100644
--- a/modules/txt2img.py
+++ b/modules/txt2img.py
@@ -47,6 +47,8 @@ def txt2img(prompt: str, negative_prompt: str, prompt_style: str, prompt_style2:
if processed is None:
processed = process_images(p)
+ p.close()
+
shared.total_tqdm.clear()
generation_info_js = processed.js()