【发布时间】:2021-01-24 12:55:18
【问题描述】:
我尝试使用 Google Colab 在自己的数据集上训练 YOLO_v4,遇到了下一个错误:
CUDA status Error: file: ./src/blas_kernels.cu : () : line: 841 : build time: Oct 9 2020 - 12:04:13
CUDA Error: no kernel image is available for execution on the device
CUDA Error: no kernel image is available for execution on the device: File exists
darknet: ./src/utils.c:325: error: Assertion `0' failed.
CPU times: user 58 ms, sys: 12.4 ms, total: 70.4 ms
Wall time: 15.4 s
我检查了我的代码,但找不到错误。 然后我用我使用的示例运行了 Google Colab 笔记本(https://colab.research.google.com/drive/1cbzkKcACQPzLXuBYH7KPOh73Ko8xdUPn#scrollTo=6miYFbvExqMd)。当我执行单元格时:
%%time
!./darknet detector train data/obj.data cfg/custom-yolov4-detector.cfg -dont_show -map #./backup/custom-yolov4-detector_last.weights
#If you get CUDA out of memory adjust subdivisions above!
#adjust max batches down for shorter training above
这个错误出现有时不会。 我很混乱... 我认为这与我连接的 GPU 的可用性或类型有关。 有什么建议吗?
【问题讨论】:
标签: deep-learning google-colaboratory object-detection yolo