"ppstructure/table/tablepyxl/__init__.py" did not exist on "b2260182e436e6cddbed3dca749eab6125e9f5b5"
Commit 3e0033ef authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix model merge bug.

Unload models before getting weights for model patching.
parent 002aefa3
...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment