deep-learning - 测试yolov3模型时出现cuda错误>> CUDA状态错误:文件:./src/dark_cuda.c : ()
问题描述
CUDA status Error: file: ./src/dark_cuda.c : () : line: 39 : build time: Feb 9 2021 - 13:15:44
CUDA Error: no CUDA-capable device is detected
CUDA Error: no CUDA-capable device is detected: Bad file descriptor
darknet: ./src/utils.c:331: error: Assertion `0' failed.
我在 G-Colab 上用自定义数据训练了一个 yolov3 模型,在测试时遇到了这个错误。 在用于测试的 yolov3 cfg 中,我采用 batch = 1 和 subdivisons = 1,而对于训练,我采用 batch = 32 和 subdivisions = 8
解决方案
我通过运行这个暗网解决了它>> https://github.com/AlexeyAB/darknet
%cd darknet
!sed -i 's/GPU=0/GPU=1/g' Makefile
!cat Makefile
!make
推荐阅读
- c# - 如何在 ActiveReports 的 SubReport 中绘制矩形?
- python - 如何在 anaconda 下的 Mac 上安装 pandas 1.1.0 并通过 conda 挂在“解决环境”上
- javascript - Typescript 通过带有类型检查的构造函数传递字段
- ios - Xcode 12.0.1 屏幕截图仅在 iOS 模拟器上捕获主屏幕
- css - 突出显示父导航元素
- python - tensorflow-gpu ValueError:未知层:功能
- c++ - 从 CreateProcess 运行 CMake 会返回 FileTracker FTK0001 错误
- android - MPAndroidChart:如何获得缩放的图表宽度?
- typescript - 如何从字符串中提取数字?
- laravel - 我们如何使用 apiresources laravel 将多个关系合并到一维数组中