andabi / music-source-separation

Deep neural networks for separating singing voice from music written in TensorFlow
795 stars 150 forks source link

使用自己的语音数据报错 #46

Closed suntingfeng closed 4 years ago

suntingfeng commented 4 years ago

你好,训练好模型后使用UndividedWavfile中数据进行预测是能够正常运行, 使用自己的音频数据的时候,会报 Traceback (most recent call last): File "eval.py", line 132, in eval() File "eval.py", line 35, in eval mixed_wav, src1_wav, src2_wav, wavfiles = data.next_wavs(EvalConfig.SECONDS, EvalConfig.NUM_EVAL) File "/home/rec/local_disk/template/items/music-source-separation-master/data.py", line 22, in next_wavs wavfiles = random.sample(wavfiles, size) File "/usr/local/lib/python3.6/random.py", line 318, in sample raise ValueError("Sample larger than population or is negative") ValueError: Sample larger than population or is negative

我已经将自己的语音数据的rate也是16000hz,请问这是什么原因呢?

zeeker999 commented 4 years ago

是不是没有找到数据文件,或者数据文件太少。

suntingfeng notifications@github.com 於 2019年9月5日週四 上午11:52寫道:

你好,训练好模型后使用UndividedWavfile中数据进行预测是能够正常运行, 使用自己的音频数据的时候,会报 Traceback (most recent call last): File "eval.py", line 132, in eval() File "eval.py", line 35, in eval mixed_wav, src1_wav, src2_wav, wavfiles = data.next_wavs(EvalConfig.SECONDS, EvalConfig.NUM_EVAL) File "/home/rec/local_disk/template/items/music-source-separation-master/data.py", line 22, in next_wavs wavfiles = random.sample(wavfiles, size) File "/usr/local/lib/python3.6/random.py", line 318, in sample raise ValueError("Sample larger than population or is negative") ValueError: Sample larger than population or is negative

我已经将自己的语音数据的rate也是16000hz,请问这是什么原因呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andabi/music-source-separation/issues/46?email_source=notifications&email_token=ADJVAOEJO2LO7CT2REEG3V3QIB673A5CNFSM4ITZA3EKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJNMD7Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJVAOFWWMLFNDNUCWXCDEDQIB673ANCNFSM4ITZA3EA .

-- 上海渡维电子科技有限公司 上海市长宁路855号20楼A座 200050 电话:021-62258848-611 传真:021-62258848 Email:jinghua.luo@transmension.com