Closed dwninfinity closed 1 year ago
You should downgrade librosa.
I worked well at librosa==0.8.0
so you should do pip install librosa==0.8.0
and maybe work fine.
You should downgrade librosa. I worked well at
librosa==0.8.0
so you should dopip install librosa==0.8.0
and maybe work fine.
Thank you very much, this solved the issue.
You should downgrade librosa. I worked well at
librosa==0.8.0
so you should dopip install librosa==0.8.0
and maybe work fine.
I confirm it will work also for the newer version librosa==0.9.1
.
This will give a warning that version 0.10 will throw an error.
Chnage the code as below:
mel_basis = librosa_mel_fn(
sr=sampling_rate, n_fft=filter_length, n_mels=n_mel_channels, fmin=mel_fmin, fmax=mel_fmax
)
I'm following the instructions to get started, so to get the gist of it i'm using the provided lists and wavs while just adapting the paths to my system's.
After running the command
python train_ms.py -c configs/config.json -m checkpoints
, I encountered a TypeError when calling the mel() function in the spec_to_mel_torch() function in the mel_processing.py file, any help appreciated.Traceback:
Additional Information:
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
My
pip freeze
:For version comparison
absl-py==1.4.0 appdirs==1.4.4 audioread==3.0.0 cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 charset-normalizer==3.0.1 cycler==0.11.0 Cython==0.29.33 decorator==5.1.1 fonttools==4.38.0 google-auth==2.16.1 google-auth-oauthlib==0.4.6 grpcio==1.51.3 idna==3.4 importlib-metadata==6.0.0 joblib==1.2.0 kiwisolver==1.4.4 lazy_loader==0.1 librosa==0.10.0 llvmlite==0.39.1 Markdown==3.4.1 MarkupSafe==2.1.2 matplotlib==3.5.3 msgpack==1.0.4 numba==0.56.4 numpy==1.21.6 oauthlib==3.2.2 packaging==23.0 Pillow==9.4.0 pooch==1.6.0 protobuf==3.9.2 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.21 pyopenjtalk==0.3.0 pyparsing==3.0.9 python-dateutil==2.8.2 requests==2.28.2 requests-oauthlib==1.3.1 rsa==4.9 scikit-learn==1.0.2 scipy==1.7.3 six==1.16.0 soundfile==0.12.1 soxr==0.3.3 tensorboard==2.11.2 tensorboard-data-server==0.6.1 tensorboard-plugin-wit==1.8.1 threadpoolctl==3.1.0 torch==1.13.1+cu116 torchaudio==0.13.1+cu116 torchvision==0.14.1+cu116 tqdm==4.64.1 typing_extensions==4.5.0 Unidecode==1.3.6 urllib3==1.26.14 Werkzeug==2.2.3 zipp==3.15.0