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
4e89b2c2
Commit
4e89b2c2
authored
Aug 28, 2023
by
comfyanonymous
Browse files
Put clip vision outputs on the CPU.
parent
a094b45c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
comfy/clip_vision.py
comfy/clip_vision.py
+5
-0
No files found.
comfy/clip_vision.py
View file @
4e89b2c2
...
...
@@ -50,6 +50,11 @@ class ClipVisionModel():
with
precision_scope
(
comfy
.
model_management
.
get_autocast_device
(
self
.
load_device
),
torch
.
float32
):
outputs
=
self
.
model
(
pixel_values
=
pixel_values
)
for
k
in
outputs
:
t
=
outputs
[
k
]
if
t
is
not
None
:
outputs
[
k
]
=
t
.
cpu
()
return
outputs
def
convert_to_transformers
(
sd
,
prefix
):
...
...
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