A propos de Yolo

https://pjreddie.com/darknet/yolo/

 

YOLO object detection with OpenCV

[karim@10-83-102-17 yolo-object-detection]$ pwd
/home/karim/perso/yolo/yolo-object-detection

[karim@10-83-102-17 yolo-object-detection]$ python yolo.py –image images/baggage_claim.jpg –yolo yolo-coco
[INFO] loading YOLO from disk…
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
X server found. dri2 connection failed!
[INFO] YOLO took 1.680755 seconds
[array([[0.03601214, 0.04780507, 0.39001054, …, 0. , 0. ,
0. ],
[0.04536078, 0.03608821, 0.2888255 , …, 0. , 0. ,
0. ],
[0.0528849 , 0.03706014, 0.7606114 , …, 0. , 0. ,
0. ],
…,
[0.9585623 , 0.948351 , 0.3713468 , …, 0. , 0. ,
0. ],
[0.962664 , 0.9636656 , 0.2799068 , …, 0. , 0. ,
0. ],
[0.9637902 , 0.9584853 , 0.87090683, …, 0. , 0. ,
0. ]], dtype=float32), array([[0.02014969, 0.02389977, 0.04925819, …, 0. , 0. ,
0. ],
[0.01900613, 0.01717794, 0.38852233, …, 0. , 0. ,
0. ],
[0.02272185, 0.01636733, 0.07095726, …, 0. , 0. ,
0. ],
…,
[0.9744766 , 0.9797191 , 0.0464907 , …, 0. , 0. ,
0. ],
[0.98238534, 0.9776212 , 0.3838935 , …, 0. , 0. ,
0. ],
[0.97990173, 0.9834362 , 0.07725822, …, 0. , 0. ,
0. ]], dtype=float32), array([[0.00975429, 0.00449965, 0.01337121, …, 0. , 0. ,
0. ],
[0.00856061, 0.01010363, 0.01735355, …, 0. , 0. ,
0. ],
[0.01061513, 0.00706433, 0.17565256, …, 0. , 0. ,
0. ],
…,
[0.9893361 , 0.9900188 , 0.01663892, …, 0. , 0. ,
0. ],
[0.9902003 , 0.9875034 , 0.01849871, …, 0. , 0. ,
0. ],
[0.987604 , 0.99132895, 0.16302222, …, 0. , 0. ,
0. ]], dtype=float32)]

Yolo 9000

https://github.com/philipperemy/yolo-9000

Dans le Makefile, mettre OPENCV=0 (sinon ca ne compile pas …)

[karim@10-83-102-17 darknet]$ ./darknet detector test cfg/combine9k.data cfg/yolo9000.cfg ../yolo9000-weights/yolo9000.weights data/horses.jpg