Fix case of weights not being unpinned. (#10533)

This commit is contained in:
comfyanonymous 2025-10-29 12:48:06 -07:00 committed by GitHub
parent 1a58087ac2
commit ec4fc2a09a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1283,5 +1283,6 @@ class ModelPatcher:
self.clear_cached_hook_weights()
def __del__(self):
self.unpin_all_weights()
self.detach(unpatch_all=False)