NVIDIA / tacotron2

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

pad_center issue in sttf.py file #623

Closed KarthikAitha closed 5 months ago

KarthikAitha commented 8 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 5 months ago

use this

fft_window = pad_center(fft_window, size=filter_length)

KarthikAitha commented 5 months ago

Thank you