mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-04 22:37:15 +08:00
Update model_patcher.py
This commit is contained in:
parent
a605201278
commit
fb281b3c52
@ -415,7 +415,6 @@ class ModelPatcher:
|
|||||||
Example:
|
Example:
|
||||||
patcher = ModelPatcher()
|
patcher = ModelPatcher()
|
||||||
weight = patcher.get_model_object("layer1.conv.weight")
|
weight = patcher.get_model_object("layer1.conv.weight")
|
||||||
# Equivalent to: patcher.model.layer1.conv.weight
|
|
||||||
"""
|
"""
|
||||||
if name in self.object_patches:
|
if name in self.object_patches:
|
||||||
return self.object_patches[name]
|
return self.object_patches[name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user