Skip to content

Commit f38ce62

Browse files
committed
Fix reshape size mismatch in BWE vocoder
1 parent c9af5a5 commit f38ce62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/models/ltx2/vocoder_ltx2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def __call__(self, mel_spec: Array) -> Array:
637637
if remainder != 0:
638638
x = jnp.pad(x, ((0, 0), (0, self.hop_length - remainder), (0, 0)))
639639

640-
x_flattened = x.transpose(0, 2, 1).reshape(-1, num_samples, 1)
640+
x_flattened = x.transpose(0, 2, 1).reshape(-1, x.shape[1], 1)
641641
log_mel, _, _, _ = self.mel_stft(x_flattened)
642642
log_mel = log_mel.reshape(batch_size, num_channels, -1, log_mel.shape[-1])
643643

0 commit comments

Comments
 (0)