We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a6534 commit e600cb7Copy full SHA for e600cb7
src/diffusers/models/controlnet_union.py
@@ -841,7 +841,7 @@ def forward(
841
x = layer(x)
842
843
controlnet_cond_fuser = sample * 0.0
844
- for idx, condition in enumerate(condition_list):
+ for idx, condition in enumerate(condition_list[:-1]):
845
alpha = self.spatial_ch_projs(x[:, idx])
846
alpha = alpha.unsqueeze(-1).unsqueeze(-1)
847
controlnet_cond_fuser += condition + alpha
0 commit comments