Comprehensive-Transformer-TTS icon indicating copy to clipboard operation
Comprehensive-Transformer-TTS copied to clipboard

bug in calculate the energy in FastSpeechSTFT

Open ease-zh opened this issue 2 years ago • 0 comments

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))

ease-zh avatar Mar 17 '23 05:03 ease-zh