#1169 RuntimeError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the de

183.178* Posted at: 5 days ago 👁32

语音识别阶段出错:[faster-whisper(本地)] 运行时错误: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: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\_speech2text.py", line 91, in recogn
File "videotrans\recognition\__init__.py", line 222, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 199, in _exec
RuntimeError: 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: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/BaiduNetdiskDownload/win-videotrans-v3.82_20251019_125144

3 Replies

这个错误 cudaErrorNoKernelImageForDevice 表明您的 NVIDIA 显卡驱动或 CUDA 版本与当前使用的 PyTorch 版本不兼容。Windows 预打包版绑定的 torch 版本是 torch2.7.1+cu128

请按以下步骤解决:

  1. 更新显卡驱动:前往 NVIDIA 官方网站,下载并安装适用于您显卡型号的最新驱动程序。
  2. 检查 CUDA 兼容性:如果更新驱动后问题依旧,说明您的显卡可能不支持 CUDA 12.x。请在主界面的“语音识别设置”中,取消勾选“CUDA加速”,软件将自动回退到 CPU 进行计算。虽然速度会变慢,但可以保证功能正常。

如果以上步骤无法解决问题,请提供完整的日志文件(位于软件根目录下的 logs/ 文件夹内)。

显卡是970,一开始用的cuda12.0,报这个错误,显卡驱动升级,cuda升级到12.8之后还报这个错误
古早n卡是用不了这个吗

是的,您分析得很对。NVIDIA GeForce GTX 970 是一款比较老的显卡(Maxwell架构),其计算能力为 5.2。而当前软件绑定的 PyTorch (torch2.7.1+cu128) 所依赖的 CUDA 工具包,其预编译的二进制内核通常不再支持计算能力低于 6.0 的旧款显卡。

因此,无论您如何升级驱动或CUDA版本,这块显卡都无法直接使用CUDA加速。

解决方案:

  1. 取消CUDA加速(推荐且必须): 在软件主界面的“语音识别设置”中,取消勾选“CUDA加速”选项。软件将自动使用CPU进行计算。这是解决此问题最直接有效的方法。
  2. 考虑硬件升级: 如果您经常需要进行视频翻译这类计算密集型任务,考虑升级到支持较新CUDA版本的显卡(如GTX 10系列或更高)会显著提升处理速度。

对于GTX 970,请务必取消勾选CUDA加速。

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