Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix case where model was not properly unloaded in merging workflows.

comfyanonymous38c22e631ad0
diff --git a/comfy/model_management.py b/comfy/model_management.py
index 91e692ba2..4147989e0 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -405,6 +405,8 @@ def unload_model_clones(model, unload_weights_only=True, force_unload=True):
if not force_unload:
if unload_weights_only and unload_weight == False:
return None
+ else:
+ unload_weight = True
for i in to_unload:
logging.debug("unload clone {} {}".format(i, unload_weight))