【问题标题】:darknet: ./src/utils.c:325: error: Assertion `0' failed (YOLO-v4) Google colab暗网:./src/utils.c:325:错误:断言“0”失败(YOLO-v4)Google colab
【发布时间】: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


    【解决方案1】:

    检查此链接并像这里一样下载暗网enter link description here

    然后创建一个 yolov4.conf 文件并根据您的类标签数量对其进行配置。您可以在此处找到此配置的示例:enter link description here

    【讨论】:

    • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接的答案可能会失效。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多