Skip to content

Commit 3eb89ae

Browse files
committed
1 parent 5a30c75 commit 3eb89ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/controlnets/controlnet_union.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def forward(
764764
x = layer(x)
765765

766766
controlnet_cond_fuser = sample * 0.0
767-
for idx, condition in enumerate(condition_list[:-1]):
767+
for idx, condition in zip(control_type_idx, condition_list[:-1]):
768768
alpha = self.spatial_ch_projs(x[:, idx])
769769
alpha = alpha.unsqueeze(-1).unsqueeze(-1)
770770
controlnet_cond_fuser += condition + alpha

0 commit comments

Comments
 (0)