Tensor Flow
  • Tensor Flow
  • Introduction
  • Installation
    • MacOs
    • Ubuntu
  • Applications
    • Chatbot
      • Introduction
        • Concepts and parameters
      • Dependencies
        • Libraries
        • Data - Reddit
      • Data Structure
      • Buffering Data
      • Building DataBase
      • Training DataBase and Model
      • Interaction with ChatBot
    • Image Recognition
      • Introduction
      • Dependecies
      • Example
        • Results
Powered by GitBook
On this page

Was this helpful?

  1. Applications
  2. Image Recognition

Dependecies

PreviousIntroductionNextExample

Last updated 5 years ago

Was this helpful?

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 , just run:

brew install protobuf
  • If you see any error messages, runbrew 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.

https://brew.sh\