Difference between revisions of "YOLO"

From Interaction Station Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
*Go to the directory and run the detector for videos:
 
*Go to the directory and run the detector for videos:
 
  cd darknet
 
  cd darknet
  ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights ny720p2.mp4
+
  ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights data/ny720p2.mp4
  
 
*Run the detector (webcam):
 
*Run the detector (webcam):

Revision as of 00:54, 20 February 2019

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 data/ny720p2.mp4
  • Run the detector (webcam):
./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights

Guide