Open JavaAndPython55 opened 10 months ago
当我根据colab中你给的代码执行到
input_wav = "./test_wavs/" output_data = "./output_training_data/" ret, report = run_auto_label(input_wav=input_wav, work_dir=output_data, resource_revision="v1.0.7")
我知道这是一个数组越界的错误,但是你代码里面的,我准备过去改,我一看,全是公式。我无从下手,也不知道改了会不会影响下一步。希望能给出指导 /usr/local/lib/python3.10/dist-packages/tts_autolabel/audio2phone/funasr_onnx/utils/frontend.py这个类的101行
99 T_lfr = int(np.ceil(T / lfr_n)) 100 left_padding = np.tile(inputs[0], ((lfr_m - 1) // 2, 1))
--> 101 inputs = np.vstack((left_padding, inputs)) 102 T = T + (lfr_m - 1) // 2 103 for i in range(T_lfr):
IndexError: index 0 is out of bounds for axis 0 with size 0
上传.wav声音素材文件的话应该不会出现这种error,可以再试一下
上传.wav声音素材文件也还是会报错,但是colab就不会报错,非常的迷
语音素材的长度需要一分钟以上
当我根据colab中你给的代码执行到
我知道这是一个数组越界的错误,但是你代码里面的,我准备过去改,我一看,全是公式。我无从下手,也不知道改了会不会影响下一步。希望能给出指导 /usr/local/lib/python3.10/dist-packages/tts_autolabel/audio2phone/funasr_onnx/utils/frontend.py这个类的101行
--> 101 inputs = np.vstack((left_padding, inputs)) 102 T = T + (lfr_m - 1) // 2 103 for i in range(T_lfr):
IndexError: index 0 is out of bounds for axis 0 with size 0