#5868 No CUDA detected. Check NVIDIA GPU/Drivers. See Help -> CUDA.

42.116* Posted at: 8 hours ago

No CUDA detected. Check NVIDIA GPU/Drivers. See Help -> CUDA.


=
system:Windows-10-10.0.26200-SP0
version:v4.05
frozen:False
language:en
root_dir:C:/Users/Asus/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

5 Replies

This error means your system did not detect a working CUDA environment, even though you have an NVIDIA GPU or are trying to enable GPU acceleration.

Root Cause: The software requires NVIDIA GPU + CUDA Toolkit 12.8+ + cuDNN 9.11+ for GPU acceleration. Missing any of these or incorrect environment variables will cause this.

Solutions:

  1. Verify your GPU: Open Command Prompt and run:

    • nvidia-smi → should show your NVIDIA GPU and driver version (must support CUDA 12.8+).
    • nvcc -V → should show CUDA compiler version (must be 12.8+).
  2. Install CUDA Toolkit (12.8): Download from NVIDIA CUDA Toolkit. During installation, ensure the Add to PATH option is selected.
  3. Install cuDNN (9.11+): Download from NVIDIA cuDNN page. After extraction, copy the bin, lib, include folders into your CUDA installation directory (e.g., C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\).
  4. Check environment variables: Ensure CUDA_PATH and CUDA_PATH_V12_8 exist and point to the correct CUDA directory. Add %CUDA_PATH%\bin and %CUDA_PATH%\lib to your PATH.
  5. Restart your computer after installation, then relaunch pyVideoTrans.
  6. If you do not have an NVIDIA GPU: You cannot use CUDA acceleration. The software will work with CPU only (slower), or you can try AMD GPU via the Whisper.NET channel (Windows only, requires uv sync --extra dotnet).

Please consult:

I've tried everything so far but still can't fix it.

Please provide the output of these two commands from Command Prompt (Run as Administrator):

  1. nvidia-smi
  2. nvcc -V

And also share the latest log file from C:/Users/Asus/pyvideotrans/logs/ (copy the last 30 lines).

Without this, I cannot tell if:

  • Your GPU is actually NVIDIA (AMD/Intel cannot use CUDA)
  • Your driver supports CUDA 12.8+
  • CUDA Toolkit is properly installed and in PATH
  • cuDNN is missing

If you are certain everything is installed, also try:

  • Temporarily disable antivirus / Windows Defender (may block DLL loading)
  • Run sp.exe as Administrator (right-click -> Run as Administrator)
  • Check 环境变量PATH contains both C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin and lib

ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3-turbo, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
未选 配音角色,不进行配音
字幕: Embed Hard Subs
代理地址:
[DEBUG] [TransCreate]最终配置信息:self=TransCreate(uuid='a19ddd7452', proxy_str=None, last_down_time=0, precent=1, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_separate=False, should_hebing=True, source_srt_list=[], target_srt_list=[], video_time=0.0, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', cost_duration=1784202426.9204504, should_recogn2=False)
self.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/Lab 4 - Logic Bugs.mp4,
输出结果保存到文件夹: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/_video_out/Lab 4 - Logic Bugs-mp4,
临时文件夹: C:/Users/Asus/pyvideotrans/tmp/29828/a19ddd7452
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-w
......
/Videos/Lab 2 - Injection attacks on NodeJS.mp4', '-an', '-c:v', 'copy', 'novoice.mp4']

[DEBUG] [job] trk.uuid='ac0ba7e3d0'已停止,跳过阶段 PrepareVideo trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/Lab 3 - Client Side Attacks.mp4,
输出结果保存到文件夹: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/_video_out/Lab 3 - Client Side Attacks-mp4,
临时文件夹: C:/Users/Asus/pyvideotrans/tmp/29828/ac0ba7e3d0
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3-turbo, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
未选 配音角色,不进行配音
字幕: Embed Hard Subs
代理地址:
[DEBUG] [job] trk.uuid='a19ddd7452'已停止,跳过阶段 PrepareVideo trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/Lab 4 - Logic Bugs.mp4,
输出结果保存到文件夹: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/_video_out/Lab 4 - Logic Bugs-mp4,
临时文件夹: C:/Users/Asus/pyvideotrans/tmp/29828/a19ddd7452
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3-turbo, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
未选 配音角色,不进行配音
字幕: Embed Hard Subs
代理地址:
[DEBUG] [job] trk.uuid='52b4350dcb'已停止,跳过阶段 PrepareVideo trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/Lab 5 - Attacking Dependencies with known vulnerabilities.mp4,
输出结果保存到文件夹: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/_video_out/Lab 5 - Attacking Dependencies with known vulnerabilities-mp4,
临时文件夹: C:/Users/Asus/pyvideotrans/tmp/29828/52b4350dcb
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3-turbo, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
未选 配音角色,不进行配音
字幕: Embed Hard Subs
代理地址:
[DEBUG] [job] trk.uuid='799468a87a'已停止,跳过阶段 PrepareVideo trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 批量翻译模式
原始输入文件名: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/Lab 6 - Crypto and Race Conditions.mp4,
输出结果保存到文件夹: E:/PEH/7ASecurity - Hacking Modern Web Apps/Part 1/Videos/_video_out/Lab 6 - Crypto and Race Conditions-mp4,
临时文件夹: C:/Users/Asus/pyvideotrans/tmp/29828/799468a87a
已选 清理已存在
未选 启用CUDA加速
未选 降噪
ASR Channel:faster-whisper(LocalBuilt-in), model_name: large-v3-turbo, 发音语言: English, 断句方式:默认断句
Trans Channel:Google (Free),原始语言:English,目标语言:Vietnamese, 已选 Send SRT
未选 配音角色,不进行配音
字幕: Embed Hard Subs
代理地址:
[DEBUG] 上次缓存的角色:No,字幕嵌入类型:1,发音语言:English,目标语言:Vietnamese,目标语言代码:vi,模型:large-v3-turbo,TTS渠道[0]
[DEBUG] 可用 Nvidia 显卡数: 0
[DEBUG] 找到 0 个 Nvidia GPUs, 耗时: 4s
[DEBUG] 返回缓存的编解码器 Windows-264: libx264
[DEBUG] 返回缓存的编解码器 Windows-265: libx265

[DEBUG] start 9 jobs
[DEBUG] app_cfg.proxy=''
[DEBUG] 可以使用 huggingface.co

从你提供的日志来看,软件未检测到任何 NVIDIA 显卡可用 Nvidia 显卡数: 0),因此即使你在主界面上勾选了“CUDA 加速”,程序也会自动跳过并使用 CPU 处理。这是之前报错“No CUDA detected”的直接表现。

另外,日志中几乎所有任务都显示 已停止,跳过阶段,这意味着这些任务被加入了停止集合(stoped_uuid_set)。通常是因为前一个任务报错后用户点击了“停止”按钮,或者软件自动标记了失败的任务。你需要完全关闭软件并重新启动,否则这些任务的 UUID 会一直处于停止状态,导致新任务也无法执行。


针对 CUDA 检测不到的问题,请按以下步骤排查:

第一步:确认硬件
打开命令提示符(管理员),运行:

nvidia-smi
  • 如果输出显示显卡型号、驱动版本、CUDA 版本,则说明显卡驱动正常。
  • 如果提示 'nvidia-smi' 不是内部或外部命令,则说明 NVIDIA 显卡驱动未安装或未正确安装。请前往 NVIDIA 驱动下载 安装最新驱动。

第二步:确认 CUDA Toolkit 和 cuDNN 安装
在命令提示符中运行:

nvcc -V
  • 必须显示 release 12.8 或更高版本。如果没有,请安装 CUDA 12.8 Toolkit
  • 安装完成后,必须安装 cuDNN 9.11+,并将 binlibinclude 文件夹复制到 CUDA 安装目录(如 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\)。

第三步:检查环境变量
在系统环境变量中确认:

  • CUDA_PATHCUDA_PATH_V12_8 指向正确的 CUDA 目录。
  • PATH 中必须包含 %CUDA_PATH%\bin%CUDA_PATH%\lib

第四步:重启电脑
安装完 CUDA 和 cuDNN 后,必须重启电脑,使环境变量生效。

第五步:排除干扰

  • 暂时关闭杀毒软件(尤其是 Windows Defender、360、腾讯管家),它们可能阻止软件加载 CUDA 动态库。
  • 确保软件解压路径为纯英文(例如 D:\pyVideoTrans),不含空格或中文。

第六步:重新运行
重启软件后,不要勾选“清理已生成”,直接选择单个视频(先不要批量),勾选“CUDA 加速”,点击“开始”。

若仍显示显卡数为0,请查看日志中是否有更具体的错误信息(例如找不到 cuBLAS 或 cuDNN 文件),并提供最后 30 行日志以便进一步分析。


关于任务被停止的问题

你的日志中所有任务都是“已停止”,这是因为之前某个任务出错或你点击了停止按钮。解决方法:

  1. 完全退出软件,然后重新启动。
  2. 处理前,在主界面不要选中“清理已生成”(你当前已选中,这也会导致缓存被清空后重新处理)。
  3. 先尝试单个视频,确认 CUDA 正常工作后,再批量处理。

参考文档

如果以上步骤全部正确仍无法解决,请提供:

  • nvidia-sminvcc -V 的完整输出
  • 最新的完整日志文件(C:/Users/Asus/pyvideotrans/logs/ 下最新日期 .log 文件内容,至少末尾 50 行)
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 via ko-fi.com

Dondate via PayPal

Related resource