This commit is contained in:
comfyanonymous 2024-08-08 15:16:51 -04:00
parent 591010b7ef
commit 66d4233210
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ def free_memory(memory_required, device, keep_loaded=[]):
break
memory_to_free = memory_required - free_mem
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)
for i in sorted(unloaded_model, reverse=True):