#4053 TaskCfgVTT(is_cuda=True, uuid='bd101f9a3f', cache_folder='E:/pyvideotrans-v3.98/tmp/9400/bd101f9a3f', target_dir='C:/Use

103.197* Posted at: 1 day ago 👁23

语音识别阶段出错 [faster-whisper(本地)] 出错了,可能内存或显存不足
A child process terminated abruptly, the process pool is not usable anymore
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 280, in _new_process
File "videotrans\process\signelobj.py", line 81, 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 353, in recogn
File "videotrans\recognition\__init__.py", line 265, 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 294, in _new_process
RuntimeError: 出错了,可能内存或显存不足
A child process terminated abruptly, the process pool is not usable anymore
TaskCfgVTT(is_cuda=True, uuid='bd101f9a3f', cache_folder='E:/pyvideotrans-v3.98/tmp/9400/bd101f9a3f', target_dir='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4', source_language='英语', source_language_code='en', source_sub='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4/en.srt', source_wav='E:/pyvideotrans-v3.98/tmp/9400/bd101f9a3f/en.wav', source_wav_output='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4/zh-cn.srt', target_wav='E:/pyvideotrans-v3.98/tmp/9400/bd101f9a3f/target.wav', target_wav_output='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4/zh-cn.m4a', name='C:/Users/UserName/Desktop/CQB/1/Real World CQB is Impossible #shorts.mp4', noextname='Real World CQB is Impossible #shorts', basename='Real World CQB is Impossible #shorts.mp4', ext='mp4', dirname='C:/Users/UserName/Desktop/CQB/1', shound_del_name=None, translate_type=10, tts_type=1, volume='+10%', pitch='+0Hz', voice_rate='+0%', voice_role='ceshi.wav', voice_autorate=False, 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='C:/Users/UserName/Desktop/CQB/_video_out/Real World CQB is Impossible #shorts-mp4/Real World CQB is Impossible #shorts.mp4', novoice_mp4='E:/pyvideotrans-v3.98/tmp/9400/bd101f9a3f/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False)


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

1 Replies

该错误是由于内存或显存不足,导致子进程崩溃,无法继续使用进程池。

解决方案:

  1. 检查是否启用了二次识别:如果同时翻译多个视频且启用了“二次识别”,前面视频的二次识别可能会和后面视频的第一次转录同时运行,导致需要2-3倍的显存。请先尝试在主界面右上角取消勾选“二次识别”选项后重试。
  2. 降低模型大小:将 faster-whisper 的模型从 large-v3-turbo 更换为更小的模型,例如 mediumsmallbaselarge-v3 系列模型最低需要约10GB显存。
  3. 调整高级设置以降低显存占用:进入 菜单 -> 工具/选项 -> 高级选项,在“语音识别参数”区域进行以下调整:

    • CUDA数据类型:将 float32 改为 float16int8
    • 识别准确度beam_size:将 5 改为 1
    • 识别准确度best_of:将 5 改为 1
    • 启用上下文感知:将 true 改为 false
  4. 检查多显卡配置:如果你有多个显卡,且第一个显卡的可用显存较小,软件默认使用第一块显卡可能导致显存不足。请确保你使用的是 v3.98-317 或更高版本,该版本会自动选择可用显存最大的显卡。如果版本较低,请尝试升级。
  5. 检查任务并发设置:在“高级选项”的“通用设置”中,确保 GPU同时任务数[重启生效] 设置为 1(除非单卡显存大于20GB)。

请查阅相关文档:

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