Dependecies
Python dependencies are covered with:
pip install pillow
pip install lxml
pip install jupyter
pip install matplotlib
You can run the setup file:
$ cd TensorFlow/ObjectDetection/Setup
$ sh setup.sh
If you have trouble installing jupyter type:
pip uninstall notebook
pip install --upgrade notebook
Next, we need to clone the github of the models.
$ git clone https://github.com/tensorflow/models.git
Once you have the models directory we need to install Protoc:
**This instructions are for Mac OSX**
If you have Homebrew (which you can get from https://brew.sh\, just run:
brew install protobuf
If you see any error messages, run
brew doctor
, follow any recommended fixes, and try again. If it still fails, try instead:
brew upgrade protobuf
**This instructions are for Ubuntu**
Run the following commands:
PROTOC_ZIP=protoc-3.3.0-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
rm -f $PROTOC_ZIP
Once that we have protocol install , we can continue
On terminal we type:
$ cd models/research/
$ protoc object_detection/protos/*.proto --python_out=.
$ export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
Remember that this you will need to do every time you want to run his example.
Last updated
Was this helpful?