vall-e icon indicating copy to clipboard operation
vall-e copied to clipboard

Error on MacOS Ventura

Open LiveRock opened this issue 2 years ago • 4 comments

Hi

I am using MacBook Pro M1 Pro. I have recorded a short audio file in wav and put it in the data/peter folder I get the following errors when trying to train:

python -m vall_e.emb.qnt data/peter

Traceback (most recent call last):
  File "/python3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/python3/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/vall-e/vall-e/vall_e/emb/qnt.py", line 6, in <module>
    import soundfile
ModuleNotFoundError: No module named 'soundfile'

What did I do wrong?

LiveRock avatar Mar 17 '23 10:03 LiveRock

me too

leslie0912 avatar Mar 19 '23 05:03 leslie0912

You can just do pip install soundfile I guess

KodeurKubik avatar Mar 20 '23 20:03 KodeurKubik

done the following:

pip install soundfile
pip install torch 
pip install torchaudio
pip install einops
pip install encodec
pip install tqdm 
pip install diskcache 
pip install omegaconf 

I still get the errors:

Traceback (most recent call last):
  File "/python3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/python3/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Volumes/EVO980PRO2TB/Projects/speech/vall-e/vall-e/vall_e/emb/qnt.py", line 15, in <module>
    from ..config import cfg
  File "/Volumes/EVO980PRO2TB/Projects/speech/vall-e/vall-e/vall_e/config.py", line 7, in <module>
    from .utils import Config as ConfigBase
  File "/Volumes/EVO980PRO2TB/Projects/speech/vall-e/vall-e/vall_e/utils/__init__.py", line 1, in <module>
    from .config import Config
  File "/Volumes/EVO980PRO2TB/Projects/speech/vall-e/vall-e/vall_e/utils/config.py", line 13, in <module>
    class Config:
  File "/Volumes/EVO980PRO2TB/Projects/speech/vall-e/vall-e/vall_e/utils/config.py", line 21, in Config
    max_grad_norm: float | None = None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

LiveRock avatar Mar 21 '23 09:03 LiveRock

Use python3.10 and pip3.10 You are currently using a python version that is not supported by this code.

KodeurKubik avatar Mar 22 '23 06:03 KodeurKubik