facebookresearch / svoice

We provide a PyTorch implementation of the paper Voice Separation with an Unknown Number of Multiple Speakers In which, we present a new method for separating a mixed audio sequence, in which multiple voices speak simultaneously. The new method employs gated neural networks that are trained to separate the voices at multiple processing steps, while maintaining the speaker in each output channel fixed. A different model is trained for every number of possible speakers, and the model with the largest number of speakers is employed to select the actual number of speakers in a given sample. Our method greatly outperforms the current state of the art, which, as we show, is not competitive for more than two speakers.
Other
1.23k stars 178 forks source link

TypeError: cannot unpack non-iterable AudioMetaData object #94

Open Guneshwar24 opened 11 months ago

Guneshwar24 commented 11 months ago

Using dependencies: $ pip list Package Version


antlr4-python3-runtime 4.8 audioread 3.0.1 certifi 2023.7.22 cffi 1.16.0 charset-normalizer 3.3.0 colorama 0.4.6 colorlog 6.7.0 decorator 5.1.1 filelock 3.12.4 fsspec 2023.9.2 hydra-colorlog 1.0.0 hydra-core 1.0.3 idna 3.4 Jinja2 3.1.2 joblib 1.3.2 librosa 0.7.1 llvmlite 0.41.0 MarkupSafe 2.1.3 mpmath 1.3.0 networkx 3.1 numba 0.58.0 numpy 1.25.2 omegaconf 2.1.2 pesq 0.0.2 Pillow 10.0.1 pip 23.2.1 pycparser 2.21 pystoi 0.3.3 PyYAML 6.0.1 requests 2.31.0 resampy 0.4.2 scikit-learn 1.3.1 scipy 1.11.3 setuptools 68.2.2 six 1.16.0 soundfile 0.12.1 sympy 1.12 threadpoolctl 3.2.0 torch 2.1.0 torchaudio 2.1.0 torchvision 0.16.0 tqdm 4.51.0 typing_extensions 4.8.0 urllib3 2.0.6

ERROR:

$ ./make_debug.sh 0%| | 0/8 [00:00<?, ?it/s] Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 87, in json.dump(find_audio_files(sys.argv[1]), sys.stdout, indent=4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 34, in find_audiofiles
siginfo,
= torchaudio.info(file) ^^^^^^^^^^ TypeError: cannot unpack non-iterable AudioMetaData object 0%| | 0/8 [00:00<?, ?it/s]
Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 87, in json.dump(find_audio_files(sys.argv[1]), sys.stdout, indent=4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 34, in find_audiofiles
siginfo,
= torchaudio.info(file) ^^^^^^^^^^ TypeError: cannot unpack non-iterable AudioMetaData object 0%| | 0/8 [00:00<?, ?it/s]
Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 87, in json.dump(find_audio_files(sys.argv[1]), sys.stdout, indent=4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\auditivo.ai\svoice\svoice\data\audio.py", line 34, in find_audiofiles
siginfo,
= torchaudio.info(file) ^^^^^^^^^^ TypeError: cannot unpack non-iterable AudioMetaData object (auditivo)

Feavore commented 11 months ago

i'd got this issue. i removed '_' and modify line 34 & 35: siginfo = torchaudio.info(file) length = siginfo.num_frames // siginfo.sample_rate