bug fixes

This commit is contained in:
Eren Golge
2019-01-16 12:27:38 +01:00
parent 004dd0f208
commit 28d45a8d80
2 changed files with 2 additions and 12 deletions
+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)