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 bug with lowvram and controlnet advanced node.

comfyanonymousac0758a1a4a2
diff --git a/comfy/sample.py b/comfy/sample.py
index 1dfca4204..50e596749 100644
--- a/comfy/sample.py
+++ b/comfy/sample.py
@@ -53,7 +53,7 @@ def get_models_from_cond(cond, model_type):
def get_additional_models(positive, negative):
"""loads additional models in positive and negative conditioning"""
- control_nets = get_models_from_cond(positive, "control") + get_models_from_cond(negative, "control")
+ control_nets = set(get_models_from_cond(positive, "control") + get_models_from_cond(negative, "control"))
control_models = []
for m in control_nets: