From a60520127874c2797a1b4298a3b59d9c8a6558f0 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 6 Jan 2025 19:08:16 -0500 Subject: [PATCH] Update model_patcher.py --- comfy/model_patcher.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py index 4176a806..5c53e6c9 100644 --- a/comfy/model_patcher.py +++ b/comfy/model_patcher.py @@ -413,9 +413,9 @@ class ModelPatcher: The value of the requested attribute Example: - model = MyModel() - weight = get_attr(model, "layer1.conv.weight") - # Equivalent to: model.layer1.conv.weight + patcher = ModelPatcher() + weight = patcher.get_model_object("layer1.conv.weight") + # Equivalent to: patcher.model.layer1.conv.weight """ if name in self.object_patches: return self.object_patches[name]