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 issue with object patches not being copied with patcher.

comfyanonymousfe40109b57bc
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py
index 0f5385597..55800e86e 100644
--- a/comfy/model_patcher.py
+++ b/comfy/model_patcher.py
@@ -40,6 +40,7 @@ class ModelPatcher:
for k in self.patches:
n.patches[k] = self.patches[k][:]
+ n.object_patches = self.object_patches.copy()
n.model_options = copy.deepcopy(self.model_options)
n.model_keys = self.model_keys
return n