mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-16 01:37:04 +08:00
Fix case of weights not being unpinned. (#10533)
This commit is contained in:
parent
1a58087ac2
commit
ec4fc2a09a
@ -1283,5 +1283,6 @@ class ModelPatcher:
|
||||
self.clear_cached_hook_weights()
|
||||
|
||||
def __del__(self):
|
||||
self.unpin_all_weights()
|
||||
self.detach(unpatch_all=False)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user