mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
empty cache after execute()
This commit is contained in:
parent
00a9189e30
commit
3a83da7281
1
main.py
1
main.py
@ -209,6 +209,7 @@ class PromptExecutor:
|
|||||||
executed = set(executed)
|
executed = set(executed)
|
||||||
for x in executed:
|
for x in executed:
|
||||||
self.old_prompt[x] = copy.deepcopy(prompt[x])
|
self.old_prompt[x] = copy.deepcopy(prompt[x])
|
||||||
|
torch.cuda.empty_cache()
|
||||||
|
|
||||||
def validate_inputs(prompt, item):
|
def validate_inputs(prompt, item):
|
||||||
unique_id = item
|
unique_id = item
|
||||||
|
Loading…
Reference in New Issue
Block a user