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
1f4fc9ea
Commit
1f4fc9ea
authored
Apr 04, 2024
by
comfyanonymous
Browse files
Fix issue with get_model_object on patched model.
parent
1a0486bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy/model_patcher.py
comfy/model_patcher.py
+4
-1
No files found.
comfy/model_patcher.py
View file @
1f4fc9ea
...
...
@@ -154,7 +154,10 @@ class ModelPatcher:
if
name
in
self
.
object_patches
:
return
self
.
object_patches
[
name
]
else
:
return
comfy
.
utils
.
get_attr
(
self
.
model
,
name
)
if
name
in
self
.
object_patches_backup
:
return
self
.
object_patches_backup
[
name
]
else
:
return
comfy
.
utils
.
get_attr
(
self
.
model
,
name
)
def
model_patches_to
(
self
,
device
):
to
=
self
.
model_options
[
"transformer_options"
]
...
...
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