git clone https://github.com/AlexeyAB/darknet
cd darknet
make
Test
wget https://pjreddie.com/media/files/yolov3.weights
./darknet detector test ./cfg/coco.data ./cfg/yolov3.cfg ./yolov3.weights
Total BFLOPS 65.864
Loading weights from ./yolov3.weights...
seen 64
Done!
Enter Image Path: data/horses.jpg
data/horses.jpg: Predicted in 12600.076000 milli-seconds.
horse: 88%
horse: 99%
horse: 96%
horse: 99%
Not compiled with OpenCV, saving to predictions.png instead
Reference
Brief
Test
Build Config
可以编译 darknet 前通过修改 Makefile 添加如下支持
Train with Pascal VOC
Prepare Config
Training cmd
./darknet detector train cfg/voc.data cfg/yolov3-voc.cfg darknet53.conv.74
-gpus 0,1,2,3
-map
-dont_show -mjpeg_port 8090
Stop and restart the train with saved weights
Test
Test image
Test with confidence threshold
-thresh <val>
Calculation mAP
Calculation mAP with IoU threshold
-iou_thresh <val>
-[0.75 , 0.5 , 0.1]
OpenVINO
https://github.com/mystic123/tensorflow-yolo-v3.git
--tiny
指定转换yolov3-tiny model
benchmark