From e314bb4cd0d4582f0d02f691ac9eb85e3e65ffb0 Mon Sep 17 00:00:00 2001 From: rafaelvalle Date: Sun, 25 Nov 2018 22:33:52 -0800 Subject: [PATCH] stft.py: fix filter winlength error --- stft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stft.py b/stft.py index 8e137d3..03cd82f 100644 --- a/stft.py +++ b/stft.py @@ -61,7 +61,7 @@ class STFT(torch.nn.Module): np.linalg.pinv(scale * fourier_basis).T[:, None, :]) if window is not None: - assert(win_length >= filter_length) + assert(filter_length >= win_length) # get window and zero center pad it to filter_length fft_window = get_window(window, win_length, fftbins=True) fft_window = pad_center(fft_window, filter_length)