Fix case of weights not being unpinned.

This commit is contained in:
comfyanonymous 2025-10-29 15:43:30 -04:00 committed by GitHub
parent 6c14f3afac
commit 3c687e6633
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)