#3809 出错了,可能内存或显存不足 [GPU0]

123.110* Posted at: 2 hours ago 👁8

出错了,可能内存或显存不足 [GPU0]
Traceback (most recent call last):
File "videotrans\configure\_base.py", line 285, in _new_process
File "concurrent\futures\_base.py", line 458, in result
File "concurrent\futures\_base.py", line 403, in __get_result
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.


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

1 Replies

这是由于显存不足导致的。错误信息表明在GPU0上处理时进程池中的进程被意外终止,这通常是因为显存耗尽。

解决方案:

  1. 使用更小的语音识别模型:在主界面的“语音识别”下拉菜单中,将模型从 large-v3 更换为 mediumsmallbaselarge-v3 模型至少需要10GB显存。
  2. 关闭二次识别:检查主界面右上角是否勾选了“二次识别”。如果同时翻译多个视频,二次识别会占用额外显存,请取消勾选。
  3. 调整高级设置以降低显存占用

    • 点击顶部菜单 工具 -> 高级选项
    • 在“语音识别参数”区域进行如下修改:

      • CUDA数据类型:将 float32 改为 float16int8
      • 识别准确度beam_size:将 5 改为 1
      • 识别准确度best_of:将 5 改为 1
      • 启用上下文感知:确保此项为 false(未勾选)。
  4. 确保使用单卡并限制任务数:在“高级选项”的“通用设置”区域,检查以下两项:

    • GPU同时任务数[重启生效]:除非单卡显存大于20GB,否则请设为 1
    • 多显卡模式[重启生效]:如果只有一块显卡或显存不一致,请勿勾选。
    • 修改后需要重启软件生效。
  5. 批量任务改为串行:如果您在处理多个视频,请在“高级选项”的“通用设置”中勾选 批量翻译时强制串行,以避免多个任务同时消耗显存。

请查阅相关文档:

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

Similar issues already exist