Skip to content

Commit e600cb7

Browse files
committed
Fix
1 parent b0a6534 commit e600cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/controlnet_union.py

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

843843
controlnet_cond_fuser = sample * 0.0
844-
for idx, condition in enumerate(condition_list):
844+
for idx, condition in enumerate(condition_list[:-1]):
845845
alpha = self.spatial_ch_projs(x[:, idx])
846846
alpha = alpha.unsqueeze(-1).unsqueeze(-1)
847847
controlnet_cond_fuser += condition + alpha

0 commit comments

Comments
 (0)