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 get_model_object on patched model.
comfyanonymous1f4fc9ea0ccc
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.pyindex 97fabd4f2..1595d4a2c 100644--- a/comfy/model_patcher.py+++ b/comfy/model_patcher.py@@ -154,7 +154,10 @@ class ModelPatcher:if name in self.object_patches:return self.object_patches[name]else:- return comfy.utils.get_attr(self.model, name)+ if name in self.object_patches_backup:+ return self.object_patches_backup[name]+ else:+ return comfy.utils.get_attr(self.model, name)def model_patches_to(self, device):to = self.model_options["transformer_options"]