#3932 TaskCfgVTT(is_cuda=True, uuid='eb6c39662f', cache_folder='E:/translation/tmp/21400/eb6c39662f', target_dir='E:/jiujitsu/

222.94* Posted at: 3 hours ago 👁10

语音识别阶段出错 [faster-whisper(本地)] 出错了,可能内存或显存不足 [GPU0]
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 281, in _new_process
File "videotrans\process\signelobj.py", line 80, in submit_task_gpu
File "concurrent\futures\process.py", line 720, in submit
concurrent.futures.process.BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore

Traceback (most recent call last):
File "videotrans\configure\_base.py", line 281, in _new_process
File "videotrans\process\signelobj.py", line 80, in submit_task_gpu
File "concurrent\futures\process.py", line 720, in submit
concurrent.futures.process.BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 360, in recogn
File "videotrans\recognition\__init__.py", line 272, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_overall.py", line 33, in _exec
File "videotrans\recognition\_overall.py", line 105, in _faster
File "videotrans\configure\_base.py", line 299, in _new_process
RuntimeError: 出错了,可能内存或显存不足 [GPU0]
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 281, in _new_process
File "videotrans\process\signelobj.py", line 80, in submit_task_gpu
File "concurrent\futures\process.py", line 720, in submit
concurrent.futures.process.BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore
TaskCfgVTT(is_cuda=True, uuid='eb6c39662f', cache_folder='E:/translation/tmp/21400/eb6c39662f', target_dir='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4', source_language='英语', source_language_code='en', source_sub='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4/en.srt', source_wav='E:/translation/tmp/21400/eb6c39662f/en.wav', source_wav_output='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4/zh-cn.srt', target_wav='E:/translation/tmp/21400/eb6c39662f/target.wav', target_wav_output='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4/zh-cn.m4a', name='D:/门德斯/rafa/AVOIDING THE KISS OF THE DRAGON .mp4', noextname='AVOIDING THE KISS OF THE DRAGON ', basename='AVOIDING THE KISS OF THE DRAGON .mp4', ext='mp4', dirname='D:/门德斯/rafa', shound_del_name=None, translate_type=0, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Xiaoyi(Female/CN)', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/jiujitsu/AVOIDING THE KISS OF THE DRAGON -mp4/AVOIDING THE KISS OF THE DRAGON .mp4', novoice_mp4='E:/translation/tmp/21400/eb6c39662f/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=True, recogn2pass=True, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:E:/translation

1 Replies

这是由于显存或内存不足导致 faster-whisper 语音识别进程崩溃。错误信息明确指出“可能内存或显存不足 [GPU0]”,并且进程池因子进程意外终止而损坏。

解决方案:

  1. 更换更小的识别模型:您当前使用的是 large-v3-turbo 模型,对显存要求较高。请将模型更换为 mediumsmallbase
  2. 调整高级设置以降低资源占用:在菜单栏 工具/选项 -> 高级选项 中,进行如下修改:

    • CUDA数据类型: 将 float32 改为 float16int8
    • 识别准确度beam_size: 将 5 改为 1
    • 识别准确度best_of: 将 5 改为 1
    • 启用上下文感知: 将 true 改为 false
  3. 检查并限制并发任务:在 高级选项 的【通用设置】中,确保 GPU同时任务数[重启生效] 设置为 1(除非您的单卡显存大于20GB)。
  4. 关闭二次识别:您已开启 recogn2pass=True(二次识别)。在同时处理多个视频时,二次识别可能与后续视频的首次识别同时运行,导致显存需求翻倍。请在主界面取消勾选 二次识别 选项。
  5. 优化文件路径:您的原始视频路径 D:/门德斯/rafa/AVOIDING THE KISS OF THE DRAGON .mp4 包含中文字符且文件名较长。建议将视频文件移动到纯英文路径下(如 D:/videos/),并重命名为简短名称(如 dragon.mp4),以避免因路径问题引发的意外错误。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource