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 5a30c75 commit 3eb89aeCopy full SHA for 3eb89ae
src/diffusers/models/controlnets/controlnet_union.py
@@ -764,7 +764,7 @@ def forward(
764
x = layer(x)
765
766
controlnet_cond_fuser = sample * 0.0
767
- for idx, condition in enumerate(condition_list[:-1]):
+ for idx, condition in zip(control_type_idx, condition_list[:-1]):
768
alpha = self.spatial_ch_projs(x[:, idx])
769
alpha = alpha.unsqueeze(-1).unsqueeze(-1)
770
controlnet_cond_fuser += condition + alpha
0 commit comments