Skip to content

Drone Detector Install Directions

Lydia Z edited this page Dec 13, 2018 · 4 revisions

Install Tensorflow

CPU

pip install tensorflow

GPU

pip install tensorflow-gpu

Install Protobuf

sudo apt-get install protobuf-compiler python-pil python-lxml

sudo -H pip install jupyter

sudo -H pip install matplotlib

mkdir protoc_3.3

cd protoc_3.3/

wget wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip

chmod 775 protoc-3.3.0-linux-x86_64.zip

unzip protoc-3.3.0-linux-x86_64.zip

$(YOUR TENSORFLOW DIRECTORY PATH)/protoc_3.3/bin/protoc object_detection/protos/*.proto --python_out=.tensorflow/models

export PYTHONPATH=$PYTHO$ NPATH:pwd:pwd/slim

Setup

sudo python setup.py build

sudo python setup.py install

In your ~/.bashrc file, add this line to the bottom:

export PYTHONPATH='$PYTHONPATH:$(PATH TO TENSORFLOW)/models/research:$(PATH TO TENSORFLOW)/models/research/slim'

Test

Run from the directory where you cloned the Tensorflow models repo:

python models/research/object_detection/builders/model_builder_test.py

Download model