Skip to content

Commit ec4fc2a

Browse files
Fix case of weights not being unpinned. (#10533)
1 parent 1a58087 commit ec4fc2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

comfy/model_patcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,5 +1283,6 @@ def clean_hooks(self):
12831283
self.clear_cached_hook_weights()
12841284

12851285
def __del__(self):
1286+
self.unpin_all_weights()
12861287
self.detach(unpatch_all=False)
12871288

0 commit comments

Comments
 (0)