Difference between revisions of "YOLO"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
*Using YOLO with Darknet (GPU + OpenCV). Tested on Ubuntu 16.04 | *Using YOLO with Darknet (GPU + OpenCV). Tested on Ubuntu 16.04 | ||
− | *Go to the directory: | + | === Using YOLO with an image === |
+ | |||
+ | *Go to the directory and run the detector for images: | ||
cd darknet | cd darknet | ||
+ | ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg | ||
− | + | === Using YOLO with a video === | |
− | |||
− | * | + | *Go to the directory and run the detector for videos: |
+ | cd darknet | ||
./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights <video file> | ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights <video file> | ||
Line 26: | Line 29: | ||
./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights | ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights | ||
− | + | === Guide === | |
*https://pjreddie.com/darknet/yolo/ | *https://pjreddie.com/darknet/yolo/ |
Revision as of 23:01, 4 January 2019
Installation
- Fist, we install OpenCV:
- OpenCV Installation
- Then, we need to install our modified version of Darknet:
- Darknet Installation
- Go to the directory and download the YOLO weights:
cd darknet wget https://pjreddie.com/media/files/yolov3.weights
Using YOLO
- Using YOLO with Darknet (GPU + OpenCV). Tested on Ubuntu 16.04
Using YOLO with an image
- Go to the directory and run the detector for images:
cd darknet ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg
Using YOLO with a video
- Go to the directory and run the detector for videos:
cd darknet ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights <video file>
- Run the detector (webcam):
./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights