mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-05 11:40:53 +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