Add gc to prompt parser

This commit is contained in:
Disty0
2024-06-23 04:50:30 +03:00
parent 6ad519e51f
commit 4d0ba8692a
+1
View File
@@ -199,6 +199,7 @@ def encode_prompts(pipe, p, prompts: list, negative_prompts: list, steps: int, c
if debug_enabled:
get_tokens('positive', prompts[0])
get_tokens('negative', negative_prompts[0])
devices.torch_gc()
debug(f"Prompt encode: time={(time.time() - t0):.3f}")
return