Update data_utils.py

This commit is contained in:
Stardust·减
2023-11-07 17:54:35 +08:00
committed by GitHub
parent d99b4bd721
commit 17ae5b9cf5

View File

@@ -163,20 +163,6 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset):
bert = torch.zeros(1024, len(phone))
ja_bert = torch.zeros(1024, len(phone))
en_bert = bert_ori
assert bert.shape[-1] == len(phone), (
bert.shape,
len(phone),
sum(word2ph),
p1,
p2,
t1,
t2,
pold,
pold2,
word2ph,
text,
w2pho,
)
phone = torch.LongTensor(phone)
tone = torch.LongTensor(tone)
language = torch.LongTensor(language)