Code Monkey home page Code Monkey logo

rcnn-object-detection-from-scratch's Introduction

Region Based Convolutional Neural Networks (RCNN) in Python

  • This repository builds an end-to-end multi-class, multi-object image detector using RCNN which is a popular algorithm for object detection.

  • Paper: Rich feature hierarchies for accurate object detection and semantic segmentation

Requirements

  • Python 3
  • Pytorch
  • Pillow
  • Matplotlib
  • BeautifulSoup
  • tqdm

Dataset:

RCNN Algorithm Pipeline

  • The workflow is follow strickly by the pipeline below: rcnn_pipeline

  • Specifically, in my repository, RCNN algorithm is applied as below:

    • Step 1: The Selective Search algorithm is applied on each image to find the proposed ROIs (Region of Interest). After that, these regions are divided into 5 classes ('nothing', 'pineapple', 'snake fruit', 'dragon fruit', 'banana'). The coordinates of bounding box and label of each region are saved.
    • Step 2: A fine-tuned EfficientNet model is used to train for image classification problem on above dataset.
    • Step 3: At the beginning of inference phase, the Selective Search is applied to find the proposed boxes on infer image.
    • Step 4: Next, fine-tuned model trained above is used to predict class of each box.
    • Step 5: Apply Non-Maximum Suppression (NMS) algorithm to remove redundant boxes.
    • Step 6: Return final object detection results.
  • A sample result is described below: result_infer

References

rcnn-object-detection-from-scratch's People

Contributors

hoangpham3003 avatar

Stargazers

 avatar  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.