Open RahulRagesh opened 6 years ago
Check config.py
, you need to modify the DATA_PATH
in TrainConfig
class.
Check
config.py
, you need to modify theDATA_PATH
inTrainConfig
class.
Dear,
How to correct the DATA_PATH with auther's dataset ?
Thx
Have you got any solutions yet ? What should we change to ?
hello every one, it means that number of your sample is larger than the file which you want to sample it, in this case that file name is 'wavfiles' in this source code
for solving this problem
just change this wavfiles = [] to wavfiles = ['address or directory of the wav file that you want to separate it'] in data.py file
have a good time.
File "train.py", line 95, in
train()
File "train.py", line 44, in train
mixed_wav, src1_wav, src2wav, = data.next_wavs(TrainConfig.SECONDS, TrainConfig.NUM_WAVFILE)
File "D:\Machine Learning\Blind Audio Source Separation\Andabi\music-source-separation-master\data.py", line 22, in next_wavs
wavfiles = random.sample(wavfiles, size)
File "C:\Users\RAHUL\Anaconda3\lib\random.py", line 317, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
I get this error on running train.py