Skip to content

Commit 837b9e9

Browse files
committed
Fix dimension mismatch in wan i2v high/low noise branches caused by redundant transpose
1 parent 40f345f commit 837b9e9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,6 @@ def high_noise_branch(operands):
699699
mask_high,
700700
_,
701701
) = operands
702-
latents_input = jnp.transpose(latents_input, (0, 4, 1, 2, 3))
703702
noise_pred, latents_out = transformer_forward_pass(
704703
high_noise_graphdef,
705704
high_noise_state,
@@ -728,7 +727,6 @@ def low_noise_branch(operands):
728727
_,
729728
mask_low,
730729
) = operands
731-
latents_input = jnp.transpose(latents_input, (0, 4, 1, 2, 3))
732730
noise_pred, latents_out = transformer_forward_pass(
733731
low_noise_graphdef,
734732
low_noise_state,

0 commit comments

Comments
 (0)