This commit is contained in:
YuriHead 2023-05-13 23:13:51 +08:00 committed by GitHub
parent 32816088f4
commit 93b0bc6474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset):
spk = filename.split("/")[-2]
spk = torch.LongTensor([self.spk_map[spk]])
f0 = np.load(filename + ".f0.npy")
f0, uv = utils.interpolate_f0(f0)
f0, uv = np.load(filename + ".f0.npy",allow_pickle=True)
f0 = torch.FloatTensor(f0)
uv = torch.FloatTensor(uv)