Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix model merge bug.

comfyanonymous3e0033ef30a1
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py
index 55800e86e..ef18d1b23 100644
--- a/comfy/model_patcher.py
+++ b/comfy/model_patcher.py
@@ -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: