NVIDIA / tacotron2

Tacotron 2 - PyTorch implementation with faster-than-realtime inference
BSD 3-Clause "New" or "Revised" License
4.97k stars 1.37k forks source link

pad_center issue in sttf.py file #623

Closed KarthikAitha closed 3 weeks ago

KarthikAitha commented 4 months ago

Generating Mels

TypeError Traceback (most recent call last) in <cell line: 1>() 1 if generate_mels: ----> 2 create_mels()

2 frames /content/tacotron2/stft.py in init(self, filter_length, hop_length, win_length, window) 65 # get window and zero center pad it to filter_length 66 fft_window = get_window(window, win_length, fftbins=True) ---> 67 fft_window = pad_center(fft_window, filter_length) 68 fft_window = torch.from_numpy(fft_window).float() 69

TypeError: pad_center() takes 1 positional argument but 2 were given

gupt29 commented 3 weeks ago

use this

fft_window = pad_center(fft_window, size=filter_length)

KarthikAitha commented 3 weeks ago

Thank you