Giter Site home page Giter Site logo

cifar10-image-classification-with-cnn's Introduction

Convolutional Neural Network for CIFAR10 Image Classification

Introduction

This project explores the implementation and evaluation of a Convolutional Neural Network (CNN) for image classification on the CIFAR-10 dataset. The CIFAR-10 dataset consists of 60,000 32x32 color images in 10 classes, with 50,000 training images and 10,000 test images. The aim is to design a CNN architecture that achieves comparable performance with the known benchmark.

CNN Architecture and Training

The implemented CNN architecture includes three convolutional layers with batch normalization and max pooling, followed by two fully connected layers with dropout for regularization. The model was trained using the PyTorch Lightning framework, incorporating data augmentation techniques such as random horizontal flipping and random cropping to enhance generalization. Early stopping and model checkpointing were utilized to monitor and optimize the training process, ensuring the best-performing model is saved and training is halted when the validation accuracy stops improving.

Results

The CNN achieved the following metrics on the CIFAR-10 test set:

  • Test Accuracy: 82.20%, indicating the proportion of correctly classified images out of the total.
  • Test Precision: 82.29%, measuring the average accuracy of the positive predictions for the multiclass classification task.
  • Test Recall 82.23, measuring the average percentage of retreived instances across all 10 classes
  • Test F1 Score: 82.00%, reflecting the balance between precision (correct positive predictions) and recall (retrieved relevant instances) across all 10 classes.

These metrics indicate that the model performs well in predicting each class in the dataset. However, the performance, while solid, could be further improved. The state-of-the-art Vision Transformer (ViT-H/14) model achieves a top-1 accuracy of 99.5% on CIFAR-10. Achieving similar levels of performance would require a more complex neural network, which would be computationally expensive.

In this project, striking a balance between model complexity, resource requirements, and performance was the priority.

cifar10-image-classification-with-cnn's People

Contributors

abdul-aa 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.