Git Product home page Git Product logo

object-detection-with-mobilenet-ssd's Introduction

Object detection with MobileNet SSD

Object detection with MobileNet SSD pretrained on the MS COCO dataset and fine-tuned on PASCAL VOC

Directory Structure

All the code files and folders follow the following structure.

├── images
│   ├── ima_00.jpg
│   ├── ima_01.jpg
│   ├── ima_02.jpg
│   ├── ima_03.jpg
│   ├── ima_04.jpg
│   ├── ima_05.jpg
│   └── ima_06.jpg
├── outputs
│   ├── output_ima_00.jpg
│   ├── output_ima_01.jpg
│   ├── output_ima_02.jpg
│   ├── output_ima_03.jpg
│   ├── output_ima_04.jpg
│   ├── output_ima_05.jpg
│   └── output_ima_06.jpg
├── MobileNetSSD_deploy.caffemodel
├── MobileNetSSD_deploy.prototxt.txt
├── README.md
├── object_detection.py
└── requirements.txt

Introduction

It is used MobileNet SSD (Single Shot Detector), which has been trained on the MS COCO dataset and was then fine-tuned on PASCAL VOC reaching 72.7% mAP. SSD models are generally faster when compared to other object detection models. Moreover, the MobileNet backbone also makes them less compute-intensive.

We can therefore detect 20 objects in images (+1 for the background class), including airplanes, bicycles, birds, boats, bottles, buses, cars, cats, chairs, cows, dining tables, dogs, horses, motorbikes, people, potted plants, sheep, sofas, trains, and tv monitors.

Instructions

Please, make sure you have all the requirements installed. Please read the rquirements.txt located in the main folder

To run the code in Python, please go into the main folder and execute the Python scripts detect_img.py adding the image route argument, the prototxt route argument and the model route argument. Example:

py object_detection.py --image images/ima_01.jpg --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel

Outputs

Object detection images are saved in:

 outputs/object_detections_image.jpg

object-detection-with-mobilenet-ssd's People

Contributors

javier-marti-isasi avatar

Stargazers

 avatar AMagar95 avatar

Watchers

 avatar

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.