Release processing resources after it finishes

This commit is contained in:
Jairo Correa
2022-11-01 21:56:47 -03:00
parent 61af311f29
commit c9148b2312
3 changed files with 8 additions and 3 deletions

View File

@@ -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()