Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
951c0c2b
Commit
951c0c2b
authored
Apr 26, 2023
by
comfyanonymous
Browse files
Don't keep cached outputs for removed nodes.
parent
54251ad8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
execution.py
execution.py
+9
-0
No files found.
execution.py
View file @
951c0c2b
...
...
@@ -152,6 +152,15 @@ class PromptExecutor:
self
.
server
.
client_id
=
None
with
torch
.
inference_mode
():
#delete cached outputs if nodes don't exist for them
to_delete
=
[]
for
o
in
self
.
outputs
:
if
o
not
in
prompt
:
to_delete
+=
[
o
]
for
o
in
to_delete
:
d
=
self
.
outputs
.
pop
(
o
)
del
d
for
x
in
prompt
:
recursive_output_delete_if_changed
(
prompt
,
self
.
old_prompt
,
self
.
outputs
,
x
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment