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
ed587306
"...resnet50_tensorflow.git" did not exist on "418829a20cd16774dce5f0848a4c131b5ab56122"
Commit
ed587306
authored
Sep 12, 2023
by
comfyanonymous
Browse files
Don't leave very large hidden states in the clip vision output.
parent
fb3b7282
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/clip_vision.py
comfy/clip_vision.py
+1
-0
No files found.
comfy/clip_vision.py
View file @
ed587306
...
@@ -56,6 +56,7 @@ class ClipVisionModel():
...
@@ -56,6 +56,7 @@ class ClipVisionModel():
if
t
is
not
None
:
if
t
is
not
None
:
if
k
==
'hidden_states'
:
if
k
==
'hidden_states'
:
outputs
[
"penultimate_hidden_states"
]
=
t
[
-
2
].
cpu
()
outputs
[
"penultimate_hidden_states"
]
=
t
[
-
2
].
cpu
()
outputs
[
"hidden_states"
]
=
None
else
:
else
:
outputs
[
k
]
=
t
.
cpu
()
outputs
[
k
]
=
t
.
cpu
()
...
...
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