Perform the following steps to install and run an object detection inference:
- In your TensorFlow source root you created in Chapter 1,Getting Started with Mobile TensorFlow, get the TensorFlow models repo, which contains the TensorFlow Object Detection API as one of its research models:
git clone https://github.com/tensorflow/models
- Install the matplotlib, pillow, lxml, and jupyter libraries. On Ubuntu or Mac, you can run:
sudo pip install pillowsudo pip install lxmlsudo pip install jupytersudo pip install matplotlib
- Go to the models/research directory, then run the following command:
protoc object_detection/protos/*.proto --python_out=.
This will compile all the Protobufs in the object_detection/protos ...