[Development] Is there a way to undo node patches when the run is finished? #982
-
Hello. I have developed a custom node that patches the attention layer 1 and the unet function (using I'm aware that I could just pop the patches from the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Make sure you do a .clone() like this: https://github.com/comfyanonymous/ComfyUI/blob/master/comfy_extras/nodes_hypernetwork.py#L101 on the ModelPatcher object. |
Beta Was this translation helpful? Give feedback.
Make sure you do a .clone() like this: https://github.com/comfyanonymous/ComfyUI/blob/master/comfy_extras/nodes_hypernetwork.py#L101 on the ModelPatcher object.