Using a pre-trained YOLO model for object detection

The following are the steps that you must follow to be able to use the pre-trained model:

  1. Clone this repository: go to https://github.com/allanzelener/YAD2K/, right-click on clone or download, and select the path where you want to download the ZIP. Then unzip the compressed file to YAD2K-master folder.
  1. Download the weights and cfg file from https://pjreddie.com/darknet/yolo/ by clicking on the yellow links on the page, marked by red boxes here:

  1. Save the yolov2.cfg and the yolov2.weights files downloaded inside the YAD2K-master folder.
  2. Go inside the YAD2K-master folder, open a command ...

Get Hands-On Image Processing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.