Giter Site home page Giter Site logo

timmmgz / roialign-bounding-box-roi-align-of-mask-rcnn-gui Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 7.09 MB

ROIAlign is used for object detection, this program shows in a GUI how ROI Align works.

Java 100.00%
bounding-boxes roialign cnn gui mnist detection neural-network machine-learning algorithm

roialign-bounding-box-roi-align-of-mask-rcnn-gui's Introduction

Updating soon for Digit-Recognition-CNN-and-ANN-using-Mnist-with-GUI

https://github.com/timmmGZ/Digit-Recognition-CNN-and-ANN-using-Mnist-with-GUI
I am going to modify the above program in my free time, add this ROI Align layer in it, make it become a MNIST object detection.

ROIAlign-ROI-Align-of-Mask-RCNN-GUI

Use ROI-Align because scanning e.g. 2000 Bounding-boxes(Region-Proposals) in each image, reshaping all the 2000 sub-images inside all Bounding-boxes to the same size(e.g. 28 * 28), using CNN(or ANN) to classify all the sub images will consume a lot of time(if use ANN then will be faster a bit, but it sacrifices accuracy), so the FPS will be very low, can even be 0.5 FPS depend on your settings.
So what ROI-Align does is as you see in the below picture, we use CNN to "reshape" the original image to a small size, it also extracts the features of the image in the meanwhile, and then scan same Bounding-boxes(e.g. 2000), for each Bounding-box, we don't need to reshape the sub-images inside the Bounding-box, instead, we use ROI-Align to transform the sub-image into output as same size(e.g. 7 * 7), and then we can use this output in Neural Network model directly to classify whether the sub-image in this Bounding-box is positive(foreground) or negative(background), so we don't need to do 2000 CNN per image, but only 1 CNN per image, which saves a lots of time and make FPS higher.

Two examples of 5 * 5 and 7 * 7 output size

image image

Following example shows how Bounding-box scanning works

image

Use only one size(Anchor) of Bounding-box and slowing down the scanning speed to see it more clearly

image

roialign-bounding-box-roi-align-of-mask-rcnn-gui's People

Contributors

timmmgz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

1026295417

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.