#4245 RuntimeError: could not create a memory object

218.95* Posted at: 1 hour ago 👁8

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 78, in run
File "faster_whisper\transcribe.py", line 1837, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1176, in generate_segments
File "faster_whisper\transcribe.py", line 1386, in encode
RuntimeError: could not create a memory object


=
system:Windows-10-10.0.22621-SP0
version:v3.84
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.84

1 Replies

这是显存或内存不足导致的错误,常见于使用 large-v3 等大型模型时,或同时处理多个任务导致资源耗尽。

解决方案(按顺序尝试):

  1. 关闭“二次识别”选项:如果主界面右上角勾选了“二次识别”,请取消勾选,它会在配音完成后再次转录,额外占用大量显存。
  2. 改用更小的模型:将语音识别模型从 large-v3 切换为 large-v3-turbomediumsmall。large-v3 最低需 10GB 显存。
  3. 调整高级设置降低显存占用:菜单->工具->高级选项->语音识别参数

    • CUDA数据类型:改为 int8(显存占用最低)或 float16
    • beam_size:改为 1
    • best_of:改为 1
    • 启用上下文感知:取消勾选
  4. 避免批量并行:在“高级选项”中勾选“批量翻译时强制串行”,确保一次只处理一个视频。
  5. 减少 GPU 同时任务数:高级选项中,将 GPU同时任务数 设为 1(修改后重启软件生效)。

请查阅相关文档:

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