Code Monkey home page Code Monkey logo

tensorflow_custom_objectdetection_'s Introduction

Tensorflow Object Detection API Example With Custom Dataset

##Elephant Detector App

TensorFlow's Object Detection API


Steps to be followed for this app to be working on windows:

Step 1:

=> Install Tensorflow latest version using the below command. => To install the CPU-only version of TensorFlow, enter the following command.

 C:\> pip3 install --upgrade tensorflow.	

=> To install the GPU version of TensorFlow, enter the following command.

 C:\> pip3 install --upgrade tensorflow-gpu

Step 2:

=> Object Detection Api will not be installed when we use pip installation of tensorflow.

=> So clone the Object detection tensorflow gitub repository by going to this link [TensorFlow's Object Detection API] (https://github.com/tensorflow/models).

=> This should be cloned to the location where Tensorflow is installed. In my laptop it is installed in this location.

(C:\Users\bizruntime45\AppData\Local\Programs\Python\Python35\Lib\site-packages\tensorflow).

=> So I cloned the [TensorFlow's Object Detection API] (https://github.com/tensorflow/models) into the above location.

Step 3:

=> Install the following through pip install command.

pip install pillow.

pip install lxml.

pip install jupyter.

pip install matplotlib.

pip install protobuffer.

Step 4:

=> Protobuf Compilation:

The Tensorflow Object Detection API uses Protobufs to configure model and training parameters. Before the framework can be used, the Protobuf libraries must be compiled. This should be done by running the following command from the tensorflow/models/research/ directory:

=> From tensorflow/models/research/ folder in command line run the below command.

protoc object_detection/protos/*.proto --python_out=.

=> If you are getting error in running the above then run the above command for individual .proto files one by one in that location as follows: protoc object_detection/protos/anchor_generator.proto --python_out=.

Step 5:

=>From tensorflow/models/research/ folder in command line run the below command :

python setup.py install

=>From tensorflow/models/research/slim folder in command line run the below command :

python setup.py install.

Step 6:

=> Testing the Installation.

#From tensorflow/models/research/

=> You can test that you have correctly installed the Tensorflow Object Detection API by running the following command:

python object_detection/builders/model_builder_test.py

=> If everything in the above steps go fine then Tensorflow object detection Api is successfully installed in your machine. Now we will proceed to create our own Object detection system with our custom data set.


Steps for creating our own object detection app with custom data set:

Custom Dataset creation steps:

=> In this repository I have created the Elephant detection app.So I downloaded the images of the elephants from the google and put it in the images folder of this repository.

=>Go to the data folder of this repository and follow the instructions given in the DataSet_Creation_Procedure.md file. and create the dataset which could be feed to the Tensorflow object detection Api.


Some of the Limitations of my App:

=> Since I trained this with less data set and for only 40 minutes the accuracy will be sometimes less.But if you train with large dataset and with huge GPU power then accuracy will be high.

=> I trained to detect only elephant. similarly we could train with defferent class of images to detect different objects.

tensorflow_custom_objectdetection_'s People

Contributors

dhinesh-raja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tensorflow_custom_objectdetection_'s Issues

Detection of multiple elephants in the same image

The csv file which contains the data for the images has x and y coordinates of the bounding box as attributes, but what would happen if there are many elephants in the same image? How would the data be stored then and why? Thank you for the well documented code which has made things really easy for a beginner like me. Would be really thankful for the doubt clarification :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.