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.

change 'c_adm' to 'y' in ControlNet.get_control

Jedrzej Kosinski3783cb8bfd4b
diff --git a/comfy/controlnet.py b/comfy/controlnet.py
index f1355e64e..2a88dd019 100644
--- a/comfy/controlnet.py
+++ b/comfy/controlnet.py
@@ -156,7 +156,7 @@ class ControlNet(ControlBase):
context = cond['c_crossattn']
- y = cond.get('c_adm', None)
+ y = cond.get('y', None)
if y is not None:
y = y.to(self.control_model.dtype)
control = self.control_model(x=x_noisy.to(self.control_model.dtype), hint=self.cond_hint, timesteps=t, context=context.to(self.control_model.dtype), y=y)