thuhcsi / NeuCoSVC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: cur_len: 1681, std_len: 842.

isMoJo opened this issue · comments

Hello, I tried to use the inference part, but encountered the following error. What is the cause? Many thanks~~~

/NeuCoSVC/lib/python3.10/site-packages/librosa/core/convert.py:1332: RuntimeWarning: divide by zero encountered in log10

  • 2 * np.log10(f_sq)
    Residual symmetry: P:3036.403076 N:3093.404785 MEAN:0.097070
    Traceback (most recent call last):
    File "NeuCoSVC/infer.py", line 153, in
    VoiceConverter(test_utt='all_enhanced_2.wav', ref_utt='all_enhanced_2.wav', out_path='./test.wav',
    File "NeuCoSVC/infer.py", line 41, in VoiceConverter
    pitch, f0_factor = extract_pitch(test_utt, ref_utt, predefined_factor=f0_factor, speech_enroll=speech_enroll)
    File "NeuCoSVC/utils/pitch_ld_extraction.py", line 193, in extract_pitch_ref
    source_f0 = compute_pitch(wav_path)
    File "NeuCoSVC/utils/pitch_ld_extraction.py", line 169, in compute_pitch
    compute_median = pad_arrays(compute_median, f0_std_len)
    File "NeuCoSVC/utils/pitch_ld_extraction.py", line 123, in pad_arrays
    raise ValueError(f'cur_len: {cur_len}, std_len: {std_len}.')
    ValueError: cur_len: 1681, std_len: 842.