Skip to content

Commit f74fc8c

Browse files
committed
vocoder weight
1 parent 66e9140 commit f74fc8c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/maxdiffusion/models/ltx2/vocoder_bwe_ltx2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ def __call__(self, x: Array) -> Array:
9292
# ---------------------------------------------------------------------------
9393

9494
def _sinc(x: np.ndarray) -> np.ndarray:
95-
return np.where(
96-
x == 0,
97-
1.0,
98-
np.sin(np.pi * x) / (np.pi * x),
99-
)
95+
return np.sinc(x)
10096

10197
def kaiser_sinc_filter1d(cutoff: float, half_width: float, kernel_size: int) -> np.ndarray:
10298
even = kernel_size % 2 == 0

0 commit comments

Comments
 (0)