From 9d3c611ada98a8cab43b09a9332935a3faf9686e Mon Sep 17 00:00:00 2001 From: gupt29 Date: Thu, 13 Jun 2024 00:18:59 +0530 Subject: [PATCH] Updated stft.py Solved the issue raised due to pad_center #623 --- stft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stft.py b/stft.py index edfc44ae8..4b979ec87 100644 --- a/stft.py +++ b/stft.py @@ -64,7 +64,7 @@ def __init__(self, filter_length=800, hop_length=200, win_length=800, 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) + fft_window = pad_center(fft_window, size=filter_length) fft_window = torch.from_numpy(fft_window).float() # window the bases