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 – Faster R-CNN with ResNet-101

It can be seen from the previous screenshot that even in the case of varying object sizes and also objects with small sizes, the two-stage model of Faster R-CNN predicts accurately. Now, we will show how to run a similar prediction using TensorFlow. Let's begin by cloning a repository, as it will contain most of the required codes:

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

After we have cloned, we will set up the environment. We will first download a pre-trained model from TensorFlow model-zoo

  • For macOS X:
curl -O http://download.tensorflow.org/models/object_detection/faster_rcnn_resnet101_coco_2017_11_08.tar.gztar -xvf faster_rcnn_resnet101_coco_2017_11_08.tar.gz
  • For Linux:  ...

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