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
3a83da72
Commit
3a83da72
authored
Feb 20, 2023
by
masterpiecebestquality
Browse files
empty cache after execute()
parent
00a9189e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
main.py
main.py
+1
-0
No files found.
main.py
View file @
3a83da72
...
@@ -209,6 +209,7 @@ class PromptExecutor:
...
@@ -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
...
...
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