Skip to content

Commit

Permalink
Fix librosa deprecated usage (#5579)
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquin Anton Guirao <janton@nvidia.com>
  • Loading branch information
jantonguirao committed Jul 26, 2024
1 parent 788ec4c commit 57d5ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/test/python/test_torch_pipeline_rnnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def torch_mel_fbank(spectrogram, sample_rate, device="cpu", nfilt=64, lowfreq=0,
spectrogram = spectrogram.cuda()
n_fft = 2 * (spectrogram.shape[0] - 1)
filterbanks = torch.tensor(
librosa.filters.mel(sample_rate, n_fft, n_mels=nfilt, fmin=lowfreq, fmax=highfreq),
librosa.filters.mel(sr=sample_rate, n_fft=n_fft, n_mels=nfilt, fmin=lowfreq, fmax=highfreq),
dtype=torch.float,
)
if device == "gpu":
Expand Down

0 comments on commit 57d5ead

Please sign in to comment.