Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pad_center issue in sttf.py file #623

Closed
KarthikAitha opened this issue Feb 29, 2024 · 2 comments
Closed

pad_center issue in sttf.py file #623

KarthikAitha opened this issue Feb 29, 2024 · 2 comments

Comments

@KarthikAitha
Copy link

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
Copy link

gupt29 commented Jun 12, 2024

use this

fft_window = pad_center(fft_window, size=filter_length)

gupt29 added a commit to gupt29/tacotron2 that referenced this issue Jun 12, 2024
Solved the issue raised due to pad_center NVIDIA#623
@KarthikAitha
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants