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
248aa3e5
Commit
248aa3e5
authored
Nov 11, 2023
by
comfyanonymous
Browse files
Fix bug.
parent
4a8a839b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/model_patcher.py
comfy/model_patcher.py
+1
-1
No files found.
comfy/model_patcher.py
View file @
248aa3e5
...
@@ -176,7 +176,7 @@ class ModelPatcher:
...
@@ -176,7 +176,7 @@ class ModelPatcher:
inplace_update
=
self
.
weight_inplace_update
inplace_update
=
self
.
weight_inplace_update
if
key
not
in
self
.
backup
:
if
key
not
in
self
.
backup
:
self
.
backup
[
key
]
=
weight
.
to
(
device
=
device
_to
,
copy
=
inplace_update
)
self
.
backup
[
key
]
=
weight
.
to
(
device
=
self
.
offload_
device
,
copy
=
inplace_update
)
if
device_to
is
not
None
:
if
device_to
is
not
None
:
temp_weight
=
comfy
.
model_management
.
cast_to_device
(
weight
,
device_to
,
torch
.
float32
,
copy
=
True
)
temp_weight
=
comfy
.
model_management
.
cast_to_device
(
weight
,
device_to
,
torch
.
float32
,
copy
=
True
)
...
...
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