GithubHelp home page GithubHelp logo

fvilmos / shape_color_position_detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.37 MB

A multi-headed DNN to detect shape type (circle, rectangle, triangle) shape color and position of the center point.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%
dnn cnn cnn-keras cnn-classification object-detection color-classification position-prediction

shape_color_position_detection's Introduction

Multi headed DNN predictor, detects object coordinates, color and shape type

Toy DNN to demonstrate the usage of the multi-headed output in Keras. The task is to learn to detect basic shapes (circle, triangle, rectangle...and color) and the position of the shape center point. The target was to create a slim network with an optimal number of trainable variables ( this has ~290 k).

Steps:

  1. Create a toy database, generate shapes, color it. Prepare the data to be fed to DNN normalize values (values- mean)/ standard deviation and rescale the coordinate values from [0..128,0..128] -> [0..1,0..1].

  1. Create the multiheaded Keras functional model

  1. Train and test the DNN. After ~400 steps the network reaches about 93% accuracy on position prediction, 85% for shape, and 88% on colors. Take a look at the 'data' folder for better training results.

Links

  1. keras

/Enjoy.

shape_color_position_detection's People

Contributors

fvilmos avatar

Stargazers

 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.