Fix model merge bug.

Unload models before getting weights for model patching.
main
comfyanonymous 1 year ago
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…
Cancel
Save