#5415 代理地址:http://127.0.0.1:7897

83.243* Posted at: 13 hours ago

parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 306, in faster_whisper
File "faster_whisper\transcribe.py", line 1851, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1190, in generate_segments
File "faster_whisper\transcribe.py", line 1400, 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\only_one.py", line 46, in run
File "videotrans\task\trans_create.py", line 319, in recogn
File "videotrans\recognition\__init__.py", line 191, in run
File "videotrans\recognition\_base.py", line 90, in run
File "videotrans\recognition\_whisper.py", line 38, in _exec
File "videotrans\recognition\_whisper.py", line 124, in _faster
File "videotrans\configure\base.py", line 272, in _new_process
videotrans.configure.excepts.VideoTransError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device:Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 306, in faster_whisper
File "faster_whisper\transcribe.py", line 1851, in restore_speech_timestamps
File "faster_whisper\transcribe.py", line 1190, in generate_segments
File "faster_whisper\transcribe.py", line 1400, in encode
RuntimeError: parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: E:/111.mp4,
输出结果保存到文件夹: E:/音乐/111-mp4,
临时文件夹: D:/PyVideoTrans AI/tmp/16252/576353be2f
已选 清理已存在
已选 启用CUDA加速
未选 降噪
语音识别:faster-whisper(本地内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunjian(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19045-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/PyVideoTrans AI

1 Replies

核心原因

该错误 cudaErrorNoKernelImageForDevice 表示当前 NVIDIA 显卡的驱动版本太低显卡硬件计算能力不足,无法执行 CUDA 12.8+ 编译的内核代码。您的显卡驱动或硬件不兼容当前强制绑定的 CUDA 12.8 工具包。

解决方案

  1. 升级显卡驱动
    前往 NVIDIA 官网下载并安装最新驱动(GeForce Game Ready 或 Studio 驱动),确保支持 CUDA 12.8+。安装后重启电脑。
  2. 检查驱动与 CUDA 版本
    打开命令提示符(CMD),依次执行以下命令确认兼容性:

    • nvidia-smi → 查看驱动版本及支持的最高 CUDA 版本(需 ≥ 12.8)
    • nvcc -V → 确认 CUDA 编译器版本为 12.8+
  3. 如果显卡较旧(如 GTX 900 系列及更早)
    这些显卡的计算能力低于 5.0,可能无法支持 CUDA 12.8。此时请关闭 CUDA 加速,改用 CPU 模式运行:

    • 在主界面取消勾选 "CUDA 加速"
    • 或进入 高级选项 → 通用设置,将 GPU 同时任务数 设为 0
  4. 验证环境变量
    确保系统 PATH 中包含 CUDA 的 binlib 目录(通常为 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin 等)。

请查阅相关文档

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist