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
1300a1bb
Commit
1300a1bb
authored
Aug 28, 2023
by
comfyanonymous
Browse files
Text encoder should initially load on the offload_device not the regular.
parent
f92074b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/sd.py
comfy/sd.py
+1
-1
No files found.
comfy/sd.py
View file @
1300a1bb
...
...
@@ -80,7 +80,7 @@ class CLIP:
load_device
=
model_management
.
text_encoder_device
()
offload_device
=
model_management
.
text_encoder_offload_device
()
params
[
'device'
]
=
load_device
params
[
'device'
]
=
off
load_device
if
model_management
.
should_use_fp16
(
load_device
,
prioritize_performance
=
False
):
params
[
'dtype'
]
=
torch
.
float16
else
:
...
...
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