Update data_utils.py
This commit is contained in:
@@ -99,10 +99,10 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset):
|
||||
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(
|
||||
torch.load(filename.replace(".wav", ".spec.pt")),
|
||||
self.filter_length, self.n_mel_channels, self.sampling_rate,
|
||||
self.hparams.mel_fmin, self.hparams.mel_fmax)
|
||||
#spec = spec_to_mel_torch(
|
||||
#torch.load(filename.replace(".wav", ".spec.pt")),
|
||||
#self.filter_length, self.n_mel_channels, self.sampling_rate,
|
||||
#self.hparams.mel_fmin, self.hparams.mel_fmax)
|
||||
spec = mel_spectrogram_torch(audio_norm, self.filter_length,
|
||||
self.n_mel_channels, self.sampling_rate, self.hop_length,
|
||||
self.win_length, self.hparams.mel_fmin, self.hparams.mel_fmax, center=False)
|
||||
|
||||
Reference in New Issue
Block a user