mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
change 'c_adm' to 'y' in ControlNet.get_control
This commit is contained in:
parent
d1d2fea806
commit
3783cb8bfd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user