配音阶段出错 [Confucius4(内置)] cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous,Traceback (most recent call last):
File "videotrans\process\confucius_tts.py", line 71, in confucius_fun
File "D:\win-pyvideotrans-v4.20\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "videotrans\confuciustts\cli\inference.py", line 310, in generate
File "videotrans\confuciustts\cli\inference.py", line 123, in _load_prompt
File "D:\win-pyvideotrans-v4.20\_internal\torchaudio\functional\functional.py", line 1530, in resample
resampled = _apply_sinc_resample_kernel(waveform, orig_freq, new_freq, gcd, kernel, width)File "D:\win-pyvideotrans-v4.20\_internal\torchaudio\functional\functional.py", line 1462, in _apply_sinc_resample_kernel
waveform = waveform.view(-1, shape[-1])RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 137, in run
File "videotrans\task\_stage_dubbing.py", line 25, in dubbing
File "videotrans\task\_stage_dubbing.py", line 127, in _tts
File "videotrans\tts\__init__.py", line 147, in run
File "videotrans\tts\_base.py", line 98, in run
File "videotrans\tts\_confuciustts.py", line 40, in _exec
File "videotrans\configure\base.py", line 285, in _new_process
videotrans.configure.excepts.VideoTransError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous,Traceback (most recent call last):
File "videotrans\process\confucius_tts.py", line 71, in confucius_fun
File "D:\win-pyvideotrans-v4.20\_internal\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)File "videotrans\confuciustts\cli\inference.py", line 310, in generate
File "videotrans\confuciustts\cli\inference.py", line 123, in _load_prompt
File "D:\win-pyvideotrans-v4.20\_internal\torchaudio\functional\functional.py", line 1530, in resample
resampled = _apply_sinc_resample_kernel(waveform, orig_freq, new_freq, gcd, kernel, width)File "D:\win-pyvideotrans-v4.20\_internal\torchaudio\functional\functional.py", line 1462, in _apply_sinc_resample_kernel
waveform = waveform.view(-1, shape[-1])RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
trk=翻译视频 单视频模式
选择音视频文件: D:/工作/美国人对中国和人工智能的误解 约书亚·库珀·拉莫.mp4,
输出目录: D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4,
self.cfg.cache_folder='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61'
未选 清理已生成, 已选 启用硬件加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语
最长语音持续(秒): 12s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
计算数据类型:float16
识别准确度beam_size:5
识别准确度best_of:5
启用上下文感知:False
重复惩罚:1.0
文本压缩率:2.4
翻译渠道:小米AI,发音语言:英语,目标语言:简体中文
已选 发送完整字幕, AI翻译渠道每批字幕行数:100
配音渠道:Confucius4(内置), 配音角色:clone, 目标语言:简体中文
Volume:+1%, Speed:+0%, 未选 配音加速, 已选 视频慢速
已选 移除每条字幕配音开头结尾静音缓冲
已选 移除每条字幕配音全部静音缓冲
静音移除力度: default
已选 识别说话人: 2
说话人分离模型: ali_CAM
嵌入硬字幕
中日韩字幕单行字符数:20, 其他语言字幕单行字符数:40
video duration:5034529ms
video information:{'video_fps': 23.976023976023978, 'r_frame_rate': 23.976023976023978, 'video_codec_name': 'h264', 'audio_codec_name': 'aac', 'width': 1280, 'height': 720, 'time': 5034529, 'streams_len': 2, 'streams_audio': 1, 'video_streams': 1, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='345f82da61', name='D:/工作/美国人对中国和人工智能的误解 约书亚·库珀·拉莫.mp4', dirname='D:/工作', noextname='美国人对中国和人工智能的误解 约书亚·库珀·拉莫', basename='美国人对中国和人工智能的误解 约书亚·库珀·拉莫.mp4', ext='mp4', target_dir='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4', cache_folder='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61', is_cuda=True, source_language='英语', source_language_code='en', source_sub='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4/en.srt', source_wav='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61/en.wav', source_wav_output='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4/zh-cn.srt', target_wav='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61/target.wav', target_wav_output='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4/zh-cn.m4a', translate_type=14, tts_type=5, volume='+1%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, tts_model_name=None, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=1, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='D:/win-pyvideotrans-v4.20/美国人对中国和人工智能的误解 约书亚·库珀·拉莫-mp4/美国人对中国和人工智能的误解 约书亚·库珀·拉莫.mp4', novoice_mp4='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61/novoice.mp4', is_separate=False, embed_bgm=False, instrument='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61/instrument.wav', vocal='D:/win-pyvideotrans-v4.20/tmp/35456/345f82da61/vocal.wav', clear_cache=False, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=5034529
=
system:Windows-10-10.0.26300-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.20