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

bug in calculate the energy in FastSpeechSTFT #21

Open
ease-zh opened this issue Mar 17, 2023 · 0 comments
Open

bug in calculate the energy in FastSpeechSTFT #21

ease-zh opened this issue Mar 17, 2023 · 0 comments

Comments

@ease-zh
Copy link

ease-zh commented Mar 17, 2023

I think here is a bug in audio/stft.py: 252
energy = np.sqrt(np.exp(mel) ** 2).sum(-1)
This code did nothing but just sum the abs of the np.exp(mel), while we expect it to calculate the sum before the sqrt.
The correct code should be
energy = np.sqrt((np.exp(mel) ** 2).sum(-1))

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

1 participant