DiffSinger icon indicating copy to clipboard operation
DiffSinger copied to clipboard

help! data generate erros occured

Open a1056632260 opened this issue 3 years ago • 2 comments

when I used binarize.py to generate datas, the erros had been occured .

Traceback (most recent call last): File "/home/saxsax/svs/diff/utils/multiprocess_utils.py", line 13, in chunked_worker res = map_func(*arg) File "/home/saxsax/svs/diff/data_gen/singing/binarize.py", line 167, in process_item cls.get_pitch(wav, mel, res) File "/home/saxsax/svs/diff/data_gen/tts/base_binarizer.py", line 201, in get_pitch f0, pitch_coarse = get_pitch(wav, mel, hparams) File "/home/saxsax/svs/diff/data_gen/tts/data_gen_utils.py", line 174, in get_pitch f0 = np.pad(f0, [[lpad, rpad]], mode='constant') File "<array_function internals>", line 5, in pad File "/home/saxsax/miniconda3/envs/pytorch/lib/python3.9/site-packages/numpy/lib/arraypad.py", line 743, in pad pad_width = _as_pairs(pad_width, array.ndim, as_index=True) File "/home/saxsax/miniconda3/envs/pytorch/lib/python3.9/site-packages/numpy/lib/arraypad.py", line 510, in _as_pairs raise ValueError("index can't contain negative values")

a1056632260 avatar May 12 '22 08:05 a1056632260

I think the comments in this part of the code says that this error is cause by some version problems of libraries. Besides, I also found that cutting the end part of f0 when rpad is negative works, but I do not sure whether it is reasonable...

backspacetg avatar May 16 '22 14:05 backspacetg

This is because the praat-prasemouth version not correct. pip install praat-parselmouth==0.3.3 works for me.

So-Fann avatar Jul 14 '22 09:07 So-Fann