mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Fix model merge bug.
Unload models before getting weights for model patching.
This commit is contained in:
parent
002aefa382
commit
3e0033ef30
@ -134,6 +134,7 @@ class ModelPatcher:
|
||||
return list(p)
|
||||
|
||||
def get_key_patches(self, filter_prefix=None):
|
||||
comfy.model_management.unload_model_clones(self)
|
||||
model_sd = self.model_state_dict()
|
||||
p = {}
|
||||
for k in model_sd:
|
||||
|
Loading…
Reference in New Issue
Block a user