Spaces:
Sleeping
Sleeping
Update nn_layers.py
Browse files- 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 |
-
|
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 |
|