mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 12:57:02 +08:00
unload and free, using set_flag
This commit is contained in:
parent
5a0da3439d
commit
a94d6305de
@ -651,4 +651,5 @@ class PromptServer():
|
||||
if len(self.sockets) == 0:
|
||||
with self.prompt_queue.mutex:
|
||||
if len(self.prompt_queue.currently_running) == 0 and len(self.prompt_queue.queue) == 0:
|
||||
comfy.model_management.unload_all_models()
|
||||
self.prompt_queue.set_flag("unload_models", True)
|
||||
self.prompt_queue.set_flag("free_memory", True)
|
||||
Loading…
x
Reference in New Issue
Block a user