Code Monkey home page Code Monkey logo

lenet-5-in-pytorch's Introduction

LeNet-5-Implementation-through-PyTorch

This is an architecture which was proposed in 1998 Proceedings of IEEE journal - Gradient-based learning applied to document recognition with about 37505 citations as of today. Even though this is a paper from 1998, it provides basic fundamentals of a neural network. By the development of network architecture and error rate reduction, we can grasp the importance of Deep Learning components to be added on to the network.

This is a simple implementation of the MNIST dataset on LeNet-5 Architecture using PyTorch(Handwritten Digits).

Task

To predict the class labels of the dataset (here, Handwritten Digits Images) on new data with respect to classes accurately.

Datasets

MNIST (Handwritten Digits)

The provided code will automatically extract the dataset from the module 'torchvision.datasets'.

Requirements

Python >= 3.0

PyTorch Version >= 0.4.0

torchvision >= 0.2.1

Architecture

Number of Image Channels = 1

Activation = ReLU

32×32 Input Image

Six 28×28 feature maps convolutional layer (5×5 size)

Max Pooling layers (2×2 size)

Sixteen 10×10 feature maps convolutional layer (5×5 size)

Max Pooling layers (2×2 size)

Flattened to 16x5x5 which is

Fully connected to 120 neurons

Fully connected to 84 neurons

Fully connected to 10 outputs

Obtained Output

Figure 2021-06-29 001134

Screenshot (306)

Obtained Accuracy

~99 %

lenet-5-in-pytorch's People

Contributors

gnyanesh-bangaru 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.