mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 10:53:29 +00:00
Call unpatch_hooks at the start of ModelPatcher.partially_unload
This commit is contained in:
parent
55a1b09ddc
commit
e03bd9e0e3
@ -747,6 +747,7 @@ class ModelPatcher:
|
||||
|
||||
def partially_unload(self, device_to, memory_to_free=0):
|
||||
with self.use_ejected():
|
||||
self.unpatch_hooks()
|
||||
memory_freed = 0
|
||||
patch_counter = 0
|
||||
unload_list = self._load_list()
|
||||
|
Loading…
Reference in New Issue
Block a user