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

updated the pad_center function in stft.py #620

Open coding-dallas opened 6 months ago

coding-dallas commented 6 months ago

when running inference.ipynb, getting below issue

Traceback (most recent call last): File "/home2/kesavaraj.v/kesav/test/tacotron2/audio_synthesis.py", line 43, in denoiser = Denoiser(waveglow) File "/home2/kesavaraj.v/kesav/test/tacotron2/waveglow/denoiser.py", line 13, in init self.stft = STFT(filter_length=filter_length, File "/home2/kesavaraj.v/kesav/test/tacotron2/stft.py", line 67, in init fft_window = pad_center(fft_window, filter_length) TypeError: pad_center() takes 1 positional argument but 2 were given

the error seems to be an upgrade of the library. I updated the code for resolving the issue