GithubHelp home page GithubHelp logo

pyvadev / lenet5-based-on-keras Goto Github PK

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

A simple LeNet5 CNN based on Tensorflow and Keras, correct rate: 90%, no problem with real photo test.

License: MIT License

Python 100.00%
machine-learning python3

lenet5-based-on-keras's Introduction

LeNet5 Based On Keras

(based on tensorflow-gpu 2.1.0)

Structure

LeNet5 Structure

LeNet5 structure

CNN Model Structure

model structure

activators: tanh

Data

EMNIST Letters: 145,600 characters. 26 balanced classes.

from US National Institute of Standards and Technology

The EMNIST Dataset

What is it?

The EMNIST dataset is a set of handwritten character digits derived from the NIST Special Database 19 and converted to a 28x28 pixel image format and dataset structure that directly matches the MNIST dataset. Further information on the dataset contents and conversion process can be found in the paper available at https://arxiv.org/abs/1702.05373v1

Formats

The dataset is provided in two file formats. Both versions of the dataset contain identical information, and are provided entirely for the sake of convenience. The first dataset is provided in a Matlab format that is accessible through both Matlab and Python (using the scipy.io.loadmat function). The second version of the dataset is provided in the same binary format as the original MNIST dataset as outlined in http://yann.lecun.com/exdb/mnist/

Dataset Summary

  • EMNIST ByClass: 814,255 characters. 62 unbalanced classes.
  • EMNIST ByMerge: 814,255 characters. 47 unbalanced classes.
  • EMNIST Balanced: 131,600 characters. 47 balanced classes.
  • EMNIST Letters: 145,600 characters. 26 balanced classes.
  • EMNIST Digits: 280,000 characters. 10 balanced classes.
  • EMNIST MNIST: 70,000 characters. 10 balanced classes.

...

Where to download

Running

model training

decode data

model structure output

model print

training

training

Validate

train images recognize test

this is w this is g this is p

recognizing correct

real handwriting character test

example 1 bold A

photograph

a photo

read in python and transform into 28*28

handwriting test input a

three channels into one channel

handwriting test 321

recognize result

handwriting test recognize result a

correct!

example 2 normal q

photograph

handwriting test photograph q

read in python and transform into 28*28

handwriting test input q

three channels into one channel

handwriting test 321

recognize result

handwriting test recognize result q

correct!

lenet5-based-on-keras's People

Watchers

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