Spaces:
Sleeping
Sleeping
waysolong
commited on
Commit
·
e18695a
1
Parent(s):
3439258
fix bug
Browse files
mtts/models/vocoder/VocGAN/utils/stft.py
CHANGED
@@ -66,7 +66,7 @@ class STFT(torch.nn.Module):
|
|
66 |
assert(filter_length >= win_length)
|
67 |
# get window and zero center pad it to filter_length
|
68 |
fft_window = get_window(window, win_length, fftbins=True)
|
69 |
-
fft_window = pad_center(fft_window, filter_length)
|
70 |
fft_window = torch.from_numpy(fft_window).float()
|
71 |
|
72 |
# window the bases
|
|
|
66 |
assert(filter_length >= win_length)
|
67 |
# get window and zero center pad it to filter_length
|
68 |
fft_window = get_window(window, win_length, fftbins=True)
|
69 |
+
fft_window = pad_center(fft_window, size=filter_length)
|
70 |
fft_window = torch.from_numpy(fft_window).float()
|
71 |
|
72 |
# window the bases
|