mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Add gc to prompt parser
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user