mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Fix.
This commit is contained in:
parent
591010b7ef
commit
66d4233210
@ -413,7 +413,7 @@ def free_memory(memory_required, device, keep_loaded=[]):
|
|||||||
break
|
break
|
||||||
memory_to_free = memory_required - free_mem
|
memory_to_free = memory_required - free_mem
|
||||||
logging.debug(f"Unloading {current_loaded_models[i].model.model.__class__.__name__}")
|
logging.debug(f"Unloading {current_loaded_models[i].model.model.__class__.__name__}")
|
||||||
if current_loaded_models[i].model_unload(memory_to_free, free_mem):
|
if current_loaded_models[i].model_unload(memory_to_free):
|
||||||
unloaded_model.append(i)
|
unloaded_model.append(i)
|
||||||
|
|
||||||
for i in sorted(unloaded_model, reverse=True):
|
for i in sorted(unloaded_model, reverse=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user