AlexK-PL commited on
Commit
f4997b1
1 Parent(s): fc27602

Update nn_layers.py

Browse files
Files changed (1) hide show
  1. nn_layers.py +2 -2
nn_layers.py CHANGED
@@ -76,8 +76,8 @@ class TacotronSTFT(nn.Module):
76
  self.n_mel_channels = n_mel_channels
77
  self.sampling_rate = sampling_rate
78
  self.stft_fn = STFT(filter_length, hop_length, win_length)
79
- mel_basis = librosa_mel_fn(
80
- sampling_rate, filter_length, n_mel_channels, mel_fmin, mel_fmax)
81
  mel_basis = torch.from_numpy(mel_basis).float()
82
  self.register_buffer('mel_basis', mel_basis)
83
 
 
76
  self.n_mel_channels = n_mel_channels
77
  self.sampling_rate = sampling_rate
78
  self.stft_fn = STFT(filter_length, hop_length, win_length)
79
+ mel_basis = librosa_mel_fn(sr=sampling_rate, n_fft=filter_length, n_mels=n_mel_channels,
80
+ fmin=mel_fmin, fmax=mel_fmax)
81
  mel_basis = torch.from_numpy(mel_basis).float()
82
  self.register_buffer('mel_basis', mel_basis)
83