#944 RuntimeError: CUDA failed with error out of memory

240e:341* Posted at: 19 hours ago 👁8

Traceback (most recent call last):

File "videotrans\process\_overall.py", line 77, in run

File "faster_whisper\transcribe.py", line 1809, in restore_speech_timestamps

File "faster_whisper\transcribe.py", line 1171, in generate_segments

File "faster_whisper\transcribe.py", line 1404, in generate_with_fallback

RuntimeError: CUDA failed with error out of memory

=====

Windows-10-10.0.19045-SP0

version:v3.81

frozen:True

language:zh

1 Replies

本条内容由 Gemini 回复
您遇到的 RuntimeError: CUDA failed with error out of memory 错误表明您的 NVIDIA 显卡在执行 faster-whisper 语音识别时,显存(GPU 内存)不足以处理当前任务。

请尝试以下解决方案:

1. 选择更小的 faster-whisper 模型:

  • 在主界面“语音识别渠道”中,如果您选择了 faster-whisper(本地),请尝试选择一个更小的模型(例如,从 largemedium 切换到 smallbase)。较小的模型占用更少的显存。首次选择时可能需要下载新模型。

2. 关闭其他占用显存的程序:

  • 在运行 pyVideoTrans 之前,请关闭其他可能大量占用显存的应用程序,例如游戏、视频编辑软件或深度学习应用。

3. 取消勾选 CUDA加速 (如果前两步无效):

  • pyVideoTrans 主界面,找到并取消勾选“CUDA加速”选项。这将强制程序使用 CPU 进行计算,虽然处理速度会大幅降低,但可以避免显存不足的问题。

如果问题依然存在,请提供您的显卡型号和显存大小,以便我们进一步分析。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions