O'Reilly logo

Practical Computer Vision by Abhinav Dadhich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Demo

In the following codes, we will load a pre-trained model and perform an object detection task on pre-defined 90 categories. Before we begin, check that there is a working TensorFlow (Version = 1.4.0) Python environment.

In this section, our input is as shown in the image with people: 

We will follow similar instructions as that of two-stage detectors and begin by cloning TensorFlow/models repo:

git clone https://github.com/tensorflow/models.gitcd models/research

Let's download a pre-trained model from TensorFlow model-zoo. These are for one-stage detectors:

  • For macOS X:
curl -O http://download.tensorflow.org/models/object_detection/ssd_inception_v2_coco_2017_11_17.tar.gz ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required