Skip to content

AntarikshVerma/CNN_Minist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CNN for MNIST Digit Classification

Table of Contents

  1. Introduction
  2. Dataset
  3. Model Architecture
  4. Results
  5. Contributing
  6. License

Introduction

This project implements a Convolutional Neural Network (CNN) to classify handwritten digits from the MNIST dataset. The CNN model achieves high accuracy by using multiple convolutional and pooling layers followed by fully connected layers.

Dataset

The MNIST dataset is a large database of handwritten digits that is commonly used for training various image processing systems. It includes 60,000 training images and 10,000 test images, each of size 28x28 pixels.

Model Architecture

The CNN model consists of the following layers:

  1. Input Layer: 28x28 grayscale image.
  2. Convolutional Layer 1: 32 filters, kernel size 3x3, ReLU activation.
  3. Max Pooling Layer 1: Pool size 2x2.
  4. Convolutional Layer 2: 64 filters, kernel size 3x3, ReLU activation.
  5. Max Pooling Layer 2: Pool size 2x2.
  6. Flatten Layer: Flatten the 2D matrix into a 1D vector.
  7. Fully Connected Layer 1: 128 units, ReLU activation.
  8. Dropout Layer: 0.5 dropout rate to prevent overfitting.
  9. Output Layer: 10 units (one for each digit), Softmax activation.

Results

The CNN model achieves over 99% accuracy on the test dataset. Detailed results and visualizations can be found in the notebooks/MNIST_CNN.ipynb notebook.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Convolutional Neural Network (CNN) for the MINIST dataset using Pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published