mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
Fix case of weights not being unpinned.
This commit is contained in:
parent
6c14f3afac
commit
3c687e6633
@ -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