分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

YOLO配置使用darknet

发布时间:2023-09-06 01:31责任编辑:傅花花关键词:配置
  • Installing Darknet

1.直接设置使用,编译通过

git clone https://github.com/pjreddie/darknet.gitcd darknetmake

2. 下载权重测试

 ???wget http://pjreddie.com/media/files/yolo.weights ?????./darknet yolo test cfg/yolo.cfg yolo.weights data/dog.jpg ?

3.测试结果:

dsp@dsp:/media/dsp/学习/yolo_darknet/darknet$ ./darknet yolo test cfg/yolo.cfg yolo.weights data/dog.jpg layer ????filters ???size ?????????????input ???????????????output ???0 conv ????32 ?3 x 3 / 1 ??608 x 608 x ??3 ??-> ??608 x 608 x ?32 ???1 max ?????????2 x 2 / 2 ??608 x 608 x ?32 ??-> ??304 x 304 x ?32 ???2 conv ????64 ?3 x 3 / 1 ??304 x 304 x ?32 ??-> ??304 x 304 x ?64 ???3 max ?????????2 x 2 / 2 ??304 x 304 x ?64 ??-> ??152 x 152 x ?64 ???4 conv ???128 ?3 x 3 / 1 ??152 x 152 x ?64 ??-> ??152 x 152 x 128 ???5 conv ????64 ?1 x 1 / 1 ??152 x 152 x 128 ??-> ??152 x 152 x ?64 ???6 conv ???128 ?3 x 3 / 1 ??152 x 152 x ?64 ??-> ??152 x 152 x 128 ???7 max ?????????2 x 2 / 2 ??152 x 152 x 128 ??-> ???76 x ?76 x 128 ???8 conv ???256 ?3 x 3 / 1 ???76 x ?76 x 128 ??-> ???76 x ?76 x 256 ???9 conv ???128 ?1 x 1 / 1 ???76 x ?76 x 256 ??-> ???76 x ?76 x 128 ??10 conv ???256 ?3 x 3 / 1 ???76 x ?76 x 128 ??-> ???76 x ?76 x 256 ??11 max ?????????2 x 2 / 2 ???76 x ?76 x 256 ??-> ???38 x ?38 x 256 ??12 conv ???512 ?3 x 3 / 1 ???38 x ?38 x 256 ??-> ???38 x ?38 x 512 ??13 conv ???256 ?1 x 1 / 1 ???38 x ?38 x 512 ??-> ???38 x ?38 x 256 ??14 conv ???512 ?3 x 3 / 1 ???38 x ?38 x 256 ??-> ???38 x ?38 x 512 ??15 conv ???256 ?1 x 1 / 1 ???38 x ?38 x 512 ??-> ???38 x ?38 x 256 ??16 conv ???512 ?3 x 3 / 1 ???38 x ?38 x 256 ??-> ???38 x ?38 x 512 ??17 max ?????????2 x 2 / 2 ???38 x ?38 x 512 ??-> ???19 x ?19 x 512 ??18 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x 512 ??-> ???19 x ?19 x1024 ??19 conv ???512 ?1 x 1 / 1 ???19 x ?19 x1024 ??-> ???19 x ?19 x 512 ??20 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x 512 ??-> ???19 x ?19 x1024 ??21 conv ???512 ?1 x 1 / 1 ???19 x ?19 x1024 ??-> ???19 x ?19 x 512 ??22 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x 512 ??-> ???19 x ?19 x1024 ??23 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x1024 ??-> ???19 x ?19 x1024 ??24 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x1024 ??-> ???19 x ?19 x1024 ??25 route ?16 ??26 conv ????64 ?1 x 1 / 1 ???38 x ?38 x 512 ??-> ???38 x ?38 x ?64 ??27 reorg ?????????????/ 2 ???38 x ?38 x ?64 ??-> ???19 x ?19 x 256 ??28 route ?27 24 ??29 conv ??1024 ?3 x 3 / 1 ???19 x ?19 x1280 ??-> ???19 x ?19 x1024 ??30 conv ???425 ?1 x 1 / 1 ???19 x ?19 x1024 ??-> ???19 x ?19 x 425 ??31 detectionmask_scale: Using default ‘1.000000‘Loading weights from yolo.weights...Done!data/dog.jpg: Predicted in 9.566333 seconds.Not compiled with OpenCV, saving to predictions.png instead

- 区分上下连个命令:

 ./darknet yolo test cfg/yolo.cfg yolo.weights data/dog.jpg ?./darknet detect cfg/yolo.cfg yolo.weights data/dog.jpg

-/darknet detect cfg/yolo.cfg yolo.weights data/dog.jpg 结果:

4.设置GPU和opencv

GPU=1OPENCV=1

-编译错误

/usr/bin/ld: cannot find -lippicvcollect2: error: ld returned 1 exit statusMakefile:76: recipe for target ‘darknet‘ failedmake: *** [darknet] Error 1/usr/bin/ld: cannot find -make: *** Waiting for unfinished jobs....lippicvcollect2: error: ld returned 1 exit statusMakefile:82: recipe for target ‘libdarknet.so‘ failedmake: *** [libdarknet.so] Error 1

YOLO配置使用darknet

原文地址:http://www.cnblogs.com/ranjiewen/p/8067719.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved