#3824 语音识别阶段出错 [faster-whisper(本地)] 出错了,可能内存或显存不足A child process terminated abruptly, the process pool is not usable anymoreTr

31.223* Posted at: 4 hours ago 👁7

语音识别阶段出错 [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\_speech2text.py", line 152, 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
TaskCfgSTT(is_cuda=True, uuid='07d14dfa1d', cache_folder='D:/videotrans/tmp/24020/07d14dfa1d', target_dir='D:/videotrans/output/recogn', source_language=None, source_language_code=None, source_sub=None, source_wav=None, source_wav_output=None, target_language=None, target_language_code=None, target_sub='D:/videotrans/output/recogn/04アダルトパート-アリスはえっちな女の子.srt', target_wav=None, target_wav_output=None, name='C:/Users/Administrator/Desktop/04アダルトパート-アリスはえっちな女の子.mp3', noextname='04アダルトパート-アリスはえっちな女の子', basename='04アダルトパート-アリスはえっちな女の子.mp3', ext='mp3', dirname='C:/Users/Administrator/Desktop', shound_del_name=None, detect_language='ja', recogn_type=0, model_name='large-v3', shibie_audio='D:/videotrans/tmp/24020/07d14dfa1d/04アダルトパート-アリスはえっちな女の子-1774631736.4677513.wav', remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=False)

1 Replies

这是由于内存或显存不足导致语音识别进程崩溃。

解决方案:

  1. 更换更小的识别模型:在语音识别渠道的下拉菜单中,将 large-v3 模型更换为 mediumsmallbaselarge-v3 模型对显存/内存要求较高(建议显存 >10GB)。
  2. 调整高级设置以降低资源占用:点击 菜单 -> 工具 -> 高级选项,在“语音识别参数”区域进行以下修改:

    • CUDA数据类型:将 float32 改为 float16int8
    • 识别准确度beam_size:将 5 改为 1
    • 识别准确度best_of:将 5 改为 1
    • 启用上下文感知:确保此项为未选中状态 (false)。
  3. 检查并优化文件路径:您的输入文件路径包含特殊字符(アダルトパート),且位于桌面(路径可能较长)。请将文件移动到浅层目录(如 D:\),并重命名为简短的英文或数字名称(如 04.mp3),然后重新处理。
  4. 确保CUDA环境正确:如果您启用了CUDA加速,请确认已安装 CUDA 12.8cuDNN 9.11 及以上版本,并正确配置了环境变量。在CMD中输入 nvcc -Vnvidia-smi 验证。

请查阅相关文档:

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