aboutsummaryrefslogtreecommitdiffstats
path: root/modules/txt2img.py
diff options
context:
space:
mode:
authorBilly Cao <aliencaocao@gmail.com>2022-11-06 08:33:08 +0000
committerGitHub <noreply@github.com>2022-11-06 08:33:08 +0000
commitc13e234444e98d112e9fe99d518c834edeb79471 (patch)
tree8dfa10582dccb75685b4dd3ee28d1d48c0a6f595 /modules/txt2img.py
parent55ca04095845b41bf66333b3b7343e3ea0babed1 (diff)
parent5302e2cdd4c8f039a68e900d739285d15d99d200 (diff)
downloadstable-diffusion-webui-gfx803-c13e234444e98d112e9fe99d518c834edeb79471.tar.gz
stable-diffusion-webui-gfx803-c13e234444e98d112e9fe99d518c834edeb79471.tar.bz2
stable-diffusion-webui-gfx803-c13e234444e98d112e9fe99d518c834edeb79471.zip
Merge branch 'master' into enable-override-hypernet
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()