From b0ba163788d964dc8b91fdbcd0cd82270ad8c659 Mon Sep 17 00:00:00 2001 From: adityachintala Date: Thu, 10 Aug 2023 23:24:15 +0530 Subject: [PATCH 1/2] Old version are outdated and dependencies are clashing --- requirements.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index bfd428ab9..ae9f627d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -librosa==0.7.0 -numpy==1.17.1 -opencv-contrib-python>=4.2.0.34 -opencv-python==4.1.0.25 -torch==1.1.0 -torchvision==0.3.0 -tqdm==4.45.0 -numba==0.48 +librosa +numpy +opencv-contrib-python +opencv-python +torch +torchvision +tqdm +numba From 760b75a1d894b629f088fd5c71a10a492e7a6d97 Mon Sep 17 00:00:00 2001 From: adityachintala Date: Thu, 10 Aug 2023 23:24:38 +0530 Subject: [PATCH 2/2] Changes to librosa.filters.mel as per new version --- audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.py b/audio.py index 32b20c449..32ab5fabe 100644 --- a/audio.py +++ b/audio.py @@ -97,7 +97,7 @@ def _linear_to_mel(spectogram): def _build_mel_basis(): assert hp.fmax <= hp.sample_rate // 2 - return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, + return librosa.filters.mel(sr=hp.sample_rate, n_fft=hp.n_fft, n_mels=hp.num_mels, fmin=hp.fmin, fmax=hp.fmax) def _amp_to_db(x):