Skip to content

Commit

Permalink
Update model_patcher.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Jan 7, 2025
1 parent a605201 commit fb281b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion comfy/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ def get_model_object(self, name: str) -> torch.nn.Module:
Example:
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]
Expand Down

0 comments on commit fb281b3

Please sign in to comment.