Skip to content

Commit 8c36c66

Browse files
committed
wip
1 parent afaebbd commit 8c36c66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diffusers/models/transformers/transformer_sd3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ def custom_forward(*inputs):
424424
# controlnet residual
425425
if block_controlnet_hidden_states is not None and block.context_pre_only is False:
426426
interval_control = len(self.transformer_blocks) / len(block_controlnet_hidden_states)
427-
interval_control = int(np.ceil(interval_control))
428-
hidden_states = hidden_states + block_controlnet_hidden_states[index_block // interval_control]
427+
hidden_states = hidden_states + block_controlnet_hidden_states[int(index_block / interval_control)]
429428

430429
hidden_states = self.norm_out(hidden_states, temb)
431430
hidden_states = self.proj_out(hidden_states)

0 commit comments

Comments
 (0)