rishikksh20 / AdaSpeech

AdaSpeech: Adaptive Text to Speech for Custom Voice
Apache License 2.0
157 stars 41 forks source link

uttr = self.utterance_encoder(ys.transpose(1, 2)).transpose(1, 2) IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) #4

Open anigi98932 opened 3 years ago

anigi98932 commented 3 years ago

i got this error uttr = self.utterance_encoder(ys.transpose(1, 2)).transpose(1, 2) IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

can you give me a advice how to fix this ?

thanks

KinamSalad commented 3 years ago

@rishikksh20 @anigi98932 In line 314 of fastspeech2.py, 3rd parameter ys is missed. you should insert ys in 3rd parameter.

And I also found that hp.model.phoneme_acoustic_embed is missed in config file. Please check this.

Bhuvan-21 commented 3 years ago

I am facing the same issues and couldn't solve it with this, @KinamSalad How did you solve this?

yanzhuangzhuang-beep commented 3 years ago

have you solved this problem?

YoungChanYY commented 2 years ago

@rishikksh20 @anigi98932 In line 314 of fastspeech2.py, 3rd parameter ys is missed. you should insert ys in 3rd parameter.

And I also found that hp.model.phoneme_acoustic_embed is missed in config file. Please check this.

Thanks for your suggestion that can solved this problem. @KinamSalad @yanzhuangzhuang-beep