-
Notifications
You must be signed in to change notification settings - Fork 553
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
RuntimeError: The size of tensor a (51) must match the size of tensor b (53) at non-singleton dimension 1 #131
Comments
我之前也是这样,我觉得是词库不是完整导致有的索引为空 数据不对齐。 |
使用MFA后的数据 我的实验就正常可以跑了 |
我使用了mfa 生成的词汇表和声学模型,但是还是有这个问题, |
Maybe your lexicon generated by MFA contains some phones that are not included in the phone list in the finals = [
"a1",
"a2",
"a3",
"a4",
"a5",
"ai1",
"ai2",
"ai3",
"ai4",
...
] You can print out the missing phones by modifying the def _symbols_to_sequence(symbols):
missing=[s for s in symbols if not _should_keep_symbol(s)]
if missing:
print(missing)
return [_symbol_to_id[s] for s in symbols if _should_keep_symbol(s)] And add the missing phones into |
if chinese, please try PR: #153 |
我也遇到了类似的问题,但是我是刚训练的,mfa生成的音节已经不是拼音了,是一些我看不懂的符号 |
你需要把音素加到,text/symbols里 |
This worked |
this is useful when also training japanese model! |
|
add them into to the Line 211 in d4e79eb
|
File "/data/home/scv1106/FastSpeech2/model/modules.py", line 121, in forward
x = x + pitch_embedding
RuntimeError: The size of tensor a (51) must match the size of tensor b (53) at non-singleton dimension 1
use biaobei dataset to training, but found the problem that the tensor is not in same dimension what should i do to reslove the problems?
The text was updated successfully, but these errors were encountered: