Update data_utils.py
This commit is contained in:
@@ -94,11 +94,8 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset):
|
|||||||
spec = torch.load(spec_filename)
|
spec = torch.load(spec_filename)
|
||||||
else:
|
else:
|
||||||
if self.use_mel_spec_posterior:
|
if self.use_mel_spec_posterior:
|
||||||
''' TODO : (need verification)
|
# if os.path.exists(filename.replace(".wav", ".spec.pt")):
|
||||||
if linear spec exists convert to
|
# # spec, n_fft, num_mels, sampling_rate, fmin, fmax
|
||||||
mel from existing linear spec (uncomment below lines) '''
|
|
||||||
if os.path.exists(filename.replace(".wav", ".spec.pt")):
|
|
||||||
#spec, n_fft, num_mels, sampling_rate, fmin, fmax
|
|
||||||
# spec = spec_to_mel_torch(
|
# spec = spec_to_mel_torch(
|
||||||
# torch.load(filename.replace(".wav", ".spec.pt")),
|
# torch.load(filename.replace(".wav", ".spec.pt")),
|
||||||
# self.filter_length, self.n_mel_channels, self.sampling_rate,
|
# self.filter_length, self.n_mel_channels, self.sampling_rate,
|
||||||
|
|||||||
Reference in New Issue
Block a user