bug fixes

This commit is contained in:
Eren Golge committed 2019-01-16 12:27:38 +01:00
1 parent 004dd0f208
commit 28d45a8d80
2 files changed
+2 -12

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ class MyDataset(Dataset):
file_name = os.path.basename(wav_file).split('.')[0]
tmp_path = os.path.join("tmp/",file_name+'_phoneme.npy')
if os.path.isfile(tmp_path):
text = np.load(tmp_path, dtype=np.int32)
text = np.load(tmp_path)
else:
text = np.asarray(
phoneme_to_sequence(text, [self.cleaners]), dtype=np.int32)