语音识别阶段出错[openai-whisper(内置)] [enforce fail at alloc_cpu.cpp:116] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2928721152 bytes.:Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 65, in openai_whisper
File "whisper\transcribe.py", line 139, in transcribe
File "whisper\audio.py", line 148, in log_mel_spectrogram
File "F:\BaiduNetdiskDownload\win-pyvideotrans-v4.18-1106\_internal\torch\functional.py", line 730, in stft
return _VF.stft( # type: ignore[attr-defined]RuntimeError: [enforce fail at alloc_cpu.cpp:116] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2928721152 bytes.
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 84, in run
File "videotrans\task\_stage_recogn.py", line 64, in recogn
File "videotrans\recognition\__init__.py", line 148, in run
File "videotrans\recognition\_base.py", line 101, in run
File "videotrans\recognition\_whisper.py",
......
line 85, in _openai
File "videotrans\configure\base.py", line 291, in _new_process
videotrans.configure.excepts.VideoTransError: [enforce fail at alloc_cpu.cpp:116] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2928721152 bytes.:Traceback (most recent call last):
File "videotrans\process\stt_openai.py", line 65, in openai_whisper
File "whisper\transcribe.py", line 139, in transcribe
File "whisper\audio.py", line 148, in log_mel_spectrogram
File "F:\BaiduNetdiskDownload\win-pyvideotrans-v4.18-1106\_internal\torch\functional.py", line 730, in stft
return _VF.stft( # type: ignore[attr-defined]RuntimeError: [enforce fail at alloc_cpu.cpp:116] data. DefaultCPUAllocator: not enough memory: you tried to allocate 2928721152 bytes.
trk=翻译视频 单视频模式
选择音视频文件: E:/jj/Download/SAP CPI Full Course/1.SAP CPI Full Course_25966939885.aac,
输出目录: E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac,
self.cfg.cache_folder='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75'
已选 清理已生成, 未选 CUDA加速
语音识别:openai-whisper(内置), tiny, 发音语言: 英语
最长语音持续(秒): 5s
最短语音持续(毫秒): 3000ms
静音分割持续毫秒: 600ms
语音阈值: 0.45
选择VAD: silero
翻译渠道:Google(免费),发音语言:英语,目标语言:简体中文
传统翻译渠道每批字幕行数: 5
Dont dubbing: self.cfg.voice_role='No'
不嵌入字幕
video duration:18183430ms
video information:{'video_fps': 30, 'r_frame_rate': 30, 'video_codec_name': '', 'audio_codec_name': 'aac', 'width': 0, 'height': 0, 'time': 18183430, 'streams_len': 1, 'streams_audio': 1, 'video_streams': 0, 'color': 'yuv420p'}
self.cfg=TaskCfgVTT(uuid='5f2270cf75', name='E:/jj/Download/SAP CPI Full Course/1.SAP CPI Full Course_25966939885.aac', dirname='E:/jj/Download/SAP CPI Full Course', noextname='1.SAP CPI Full Course_25966939885', basename='1.SAP CPI Full Course_25966939885.aac', ext='aac', target_dir='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac', cache_folder='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75', is_cuda=False, source_language='英语', source_language_code='en', source_sub='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac/en.srt', source_wav='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75/en.wav', source_wav_output='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac/zh-cn.srt', target_wav='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75/target.wav', target_wav_output='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac/zh-cn.m4a', translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=1, model_name='tiny', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=False, fix_punc=0, app_mode='biaozhun', subtitle_language=None, targetdir_mp4='E:/jj/Download/SAP CPI Full Course/_video_out/1.SAP CPI Full Course_25966939885-aac/1.SAP CPI Full Course_25966939885.mp4', novoice_mp4='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75/novoice.mp4', is_separate=False, embed_bgm=True, instrument='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75/instrument.wav', vocal='F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106/tmp/22548/5f2270cf75/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8, batch=False)
video_duration_ms=18183430
=
system:Windows-10-10.0.26200-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:F:/BaiduNetdiskDownload/win-pyvideotrans-v4.18-1106