1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

empty cache after execute()

This commit is contained in:
masterpiecebestquality
2023-02-20 13:56:34 -05:00
parent 00a9189e30
commit 3a83da7281

View File

@@ -209,6 +209,7 @@ class PromptExecutor:
executed = set(executed)
for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x])
torch.cuda.empty_cache()
def validate_inputs(prompt, item):
unique_id = item