Giter Club home page Giter Club logo

objectdetection's Introduction

Object detection example using CNTK and Python Nokia3310

Overview

This example is modified version of predefined CNTK Example of Image detection which can be found at http://github.com/Microsoft/CNTK.

By running Nokia3310_detection.py the code will do the following:

  • Train and create CNTK based model whih can detect NOkia3310 on an image.
  • By providing test images the model can be evaluated and tested.
  • The example uses minimal python code, needed to run object detection by using FasterRCNN.
  • The model is not trained from zero, it is based on AlexNet pre trained model.

Running the example

Setup

To run Nokia3310 object detection example you need a CNTK 2.5, Python 3.5 environment. In order to install CNTK2.5 you have to install Intel Math Kernel Library (MKLML) from this location https://github.com/intel/mkl-dnn/releases. Anyhow in order for proper installation of CNKT consult to the official site.

Beside the basics requiremens you need to install the following additional packages:

pip install opencv-python easydict pyyaml future pillow

Also, code uses prebuild Cython modules for parts of the region proposal network (see utils/cython_modules). This will only work on Windows with Python 3.5 at the moment. You'll need to compile the cython module binaries for your specific platform (OS & Python version) to have this work on another environment.

If you want to use the debug output you need to run pip install pydot_ng (website) and install graphviz to be able to plot the CNTK graphs (the GraphViz executable has to be in the system’s PATH).

Getting the data and AlexNet model

The example uses the pre-trained AlexNet model which can be downloaded by running the following Python command from the PretrainedModels folder:

python download_model.py

Running the demo

To train and evaluate a detector run

python Nokia3310_detection.py

Changing the data set

In order to change DataSet you have to provide the images and data. More information about how to prepare image and data can be found at http://bhrnjica.net

Changing the base model

Changing base model is not supported.

objectdetection's People

Contributors

bhrnjica avatar davevoyles avatar

Stargazers

Gil Zhang avatar Yt Yao avatar qixuxiang avatar Hao avatar  avatar Stanley Salvatierra avatar Kirill Lapkovskiy avatar Muhamed Handukić avatar

Watchers

James Cloos avatar  avatar  avatar

objectdetection's Issues

Cannot train model on custom dataset.

I use VOTT to mark my dataset, and replace nokia3310 dataset to my custom dataset. After running Nokia3310_detection i get this
image
How can i fix it?

How to get train_roi_file.txt file?

Hi,
How to get the contents of train_roi_file.txt file? I have my own data set processed from VOTT, where to get the ROI values. pls, explain.

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.