#3724 出错了,可能内存或显存不足 Traceback (most recent call last): File "videotrans\configure\_base.py", line 278, in _new_process File

223.91* Posted at: 2 hours ago 👁10

出错了,可能内存或显存不足 Traceback (most recent call last):
File "videotrans\configure\_base.py", line 278, in _new_process
File "videotrans\process\signelobj.py", line 75, in submit_task_cpu
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 278, in _new_process
File "videotrans\process\signelobj.py", line 75, in submit_task_cpu
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\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 346, in run
File "videotrans\tts\_base.py", line 136, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 299, in _new_process
RuntimeError: 出错了,可能内存或显存不足 Traceback (most recent call last):
File "videotrans\configure\_base.py", line 278, in _new_process
File "videotrans\process\signelobj.py", line 75, in submit_task_cpu
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

1 Replies

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

解决方案:

  1. 使用更小的语音识别模型:在“语音识别”下拉菜单中,将模型从 large-v3 更换为 mediumsmallbaselarge-v3 模型对显存和内存要求较高。
  2. 调整高级设置以降低资源占用:在菜单栏 工具/选项 -> 高级选项 中进行如下修改:

    • CUDA数据类型:将 float32 改为 float16int8
    • 识别准确度beam_size:将 5 改为 1
    • 识别准确度best_of:将 5 改为 1
    • 启用上下文感知:将 true 改为 false
  3. 检查并限制并发任务数:在 工具/选项 -> 高级选项 的【通用设置】中:

    • GPU同时任务数[重启生效]:确保此值设为 1(除非单卡显存大于20GB)。
    • 最大进程数[重启生效]:不要超过CPU核心数减一。
  4. 确保软件路径正确:将软件解压到非系统盘(如D盘),且路径只包含英文和数字,例如 D:\pyVideoTrans。避免使用中文、空格或特殊符号。
  5. 关闭其他占用资源的程序:在处理视频时,暂时关闭不必要的软件,以释放更多内存和显存。

如果以上步骤仍无法解决,请提供软件安装目录下 logs/ 文件夹中最新日志文件的底部约30行报错信息,以便进一步分析。

请查阅相关文档:

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