mirror of
https://github.com/wassname/TTS.git
synced 2026-10-28 12:41:20 +08:00
fix longer phoneme seqs
This commit is contained in:
1 parent
7b0a93d2f8
commit
a757b203bc
1 file changed
+6
@@ -138,6 +138,12 @@ class MyDataset(Dataset):
|
||||
if "attn_file" in locals():
|
||||
attn = np.load(attn_file)
|
||||
|
||||
if len(text) > self.max_seq_len:
|
||||
# return a different sample if the phonemized
|
||||
# text is longer than the threshold
|
||||
# TODO: find a better fix
|
||||
return self.load_data(100)
|
||||
|
||||
sample = {
|
||||
'text': text,
|
||||
'wav': wav,
|
||||
|
||||
Reference in new issue
Block a user