Giter Site home page Giter Site logo

mp-balaji / cifar-10-image-classification-using-pytorch Goto Github PK

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

An image classification project implementing a custom neural network architecture using PyTorch to accurately classify images from the CIFAR-10 dataset

Jupyter Notebook 100.00%
cifar10 cnn-classification image-classification neural-networks python pytorch

cifar-10-image-classification-using-pytorch's Introduction

CIFAR-10-Image-Classification-using-PyTorch

An image classification project implementing a custom neural network architecture using PyTorch to accurately classify images from the CIFAR-10 dataset

Overview

This project involves the implementation of a custom neural network architecture to classify images from the CIFAR-10 dataset, which consists of 60,000 32x32 color images in 10 classes, with 6,000 images per class. The dataset is split into 50,000 training images and 10,000 testing images. The repository includes the PyTorch code and a detailed summary report, describing the project architecture, findings, and results.

Repository Contents

Dataset

The CIFAR-10 dataset used in this project is loaded into PyTorch DataLoaders to facilitate efficient training and testing procedures. The dataset can be explored more at CIFAR-10 dataset.

Model Architecture

The neural network architecture is designed with multiple convolutional layers arranged in blocks (B1, B2, ..., BK) followed by an output block that generates logits for classification. Each block processes the input image and outputs a transformed image, which is passed to the next block or the output block.

Intermediate Blocks

  • Each intermediate block comprises multiple independent convolutional layers.
  • Each convolutional layer applies a set of transformations and combines their outputs weighted by a computed vector.

Output Block

  • The final block computes a logits vector from the last intermediate block's output, which is used to classify the image.

Training and Evaluation

  • The model is trained using cross-entropy loss.
  • A batch size and various hyperparameters were set to optimize training.
  • Training involves calculating loss and accuracy after each epoch, and testing is done to evaluate the model's performance.

Results

  • Training loss and accuracy plots are included to demonstrate the learning process.
  • The model achieved a maximum training accuracy of 95.98% and a maximum testing accuracy of 88.51% on the CIFAR-10 test set.

Techniques Used

  • Various techniques from the coursework were employed to enhance model performance.
  • Hyperparameter tuning was crucial in improving the accuracy of the model.

How to Run

To run this project, follow these steps:

  1. Clone the repository:
    git clone https://github.com/mp-balaji/CIFAR-10-Image-Classification-using-PyTorch.git
    
  2. Run the Jupyter notebook:
    jupyter notebook PyTorch_Code.ipynb

cifar-10-image-classification-using-pytorch's People

Contributors

mp-balaji 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.