Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Aug 8, 2024
1 parent 591010b commit 66d4233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/model_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 66d4233

Please sign in to comment.