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.26k stars 181 forks source link

Execute make_dataset err(ValueError: low >= high) #73

Closed srdfjy closed 2 years ago

srdfjy commented 2 years ago

Hi,when I run make_dataset.py, the following error occurs.

data

ls ../dataset/2spk/tr | head -n 2 20170001P00001A0024.wav 20170001P00001I0112.wav

config

in_path=../dataset/2spk/tr out_path=../dataset/2spk_mix/tr noise_path= num_of_speakers=2 num_of_scenes=80 sec=4 sr=16000

python scripts/make_dataset.py \ --in_path=$in_path \ --out_path=$out_path \ --num_of_speakers=$num_of_speakers \ --num_of_scenes=$num_of_scenes \ --sec=$sec \ --sr=$sr

err

Traceback (most recent call last): File "scripts/make_dataset.py", line 238, in main(args) File "scripts/make_dataset.py", line 223, in main Data.gen_scene(args.num_of_speakers, i, args.out_path) File "scripts/make_dataset.py", line 162, in gen_scene S, sig_idx = self.fetch_signals(scenario_num_of_speakers) File "scripts/make_dataset.py", line 58, in fetch_signals select_name_indx = np.random.randint( File "mtrand.pyx", line 746, in numpy.random.mtrand.RandomState.randint File "_bounded_integers.pyx", line 1254, in numpy.random._bounded_integers._rand_int64 ValueError: low >= high

mattnappo commented 2 years ago

What was the solution? I am also getting this @srdfjy

srdfjy commented 2 years ago

image