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
3e0033ef
Commit
3e0033ef
authored
Nov 10, 2023
by
comfyanonymous
Browse files
Fix model merge bug.
Unload models before getting weights for model patching.
parent
002aefa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/model_patcher.py
comfy/model_patcher.py
+1
-0
No files found.
comfy/model_patcher.py
View file @
3e0033ef
...
@@ -134,6 +134,7 @@ class ModelPatcher:
...
@@ -134,6 +134,7 @@ class ModelPatcher:
return
list
(
p
)
return
list
(
p
)
def
get_key_patches
(
self
,
filter_prefix
=
None
):
def
get_key_patches
(
self
,
filter_prefix
=
None
):
comfy
.
model_management
.
unload_model_clones
(
self
)
model_sd
=
self
.
model_state_dict
()
model_sd
=
self
.
model_state_dict
()
p
=
{}
p
=
{}
for
k
in
model_sd
:
for
k
in
model_sd
:
...
...
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