Git Product home page Git Product logo

navoday01 / resnet5m-cifar10 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 173.35 MB

The main goal of this project is to come up with an architecture having the highest test accuracy on the CIFAR-10 image classification dataset, under the constraint that model has no more than 5 million parameters.

License: MIT License

Jupyter Notebook 98.75% Python 1.25%
cifar10 deep-learning neural-network resnet image-classification

resnet5m-cifar10's Introduction

ResNet5M-CIFAR10

The ResNet model has led to the establishment for the efficient training of deeper neural networks. This project describes how we achieved higher accuracy while using the same ResNet architecture and the methodology used to optimize the ResNet model with the constrain of 5 million trainable parameters on CIFAR-10 dataset.The CIFAR-10 dataset contains 60,000 32x32 color images in 10 different classes. The hyperparameters that have the greatest influence on the model are also discussed. Final model's pt file is ResNet.pt

Alt text

⚙️ Setup

  1. Install all the requirements (PyTorch v1.13.0)
pip3 install torch torchvision torchaudio torchinfo tensorboard
  1. Clone the GitHub repository
git clone https://github.com/navoday01/ResNet5M-CIFAR10.git
  1. Change directory into folder
cd ResNet5M-CIFAR10

🏁 Quick Start: using Google Colab

To run a demo file go to following google collab link: test model

⏳ Training

Run train script ResNetTrain.py to recreate similar model

cd models
python3 ResNetTrain.py

🖼 Testing

To Reproduce the accuracy of the model, run FinalTesting.py and ensure the model is on the right folder and change the path in the file. This script will normalise the images to right value.

cd models
python3 FinalTesting.py

📊 Results

Sr. No. Model Name # Conv Channels at layer Optimizer Params Test Acc File Link
1 Resnet20SGD [64,128,192,256] SGD+M 4.47M 93.32% LINK
2 Resnet20AdaGrad [64,128,192,256] Adagrad 4.47M 90.55% -
3 Resnet20RMSprop [64,128,192,256] RMSProp 4.47M 89.13% LINK
4 Resnet20Adam [64,128,192,256] Adam 4.47M 93.05% -
5 Resnet18Adam [64, 128, 232, 268] Adam 4.99M 81.03% LINK
6 Resnet18SGD [64, 128, 232, 268] SGD+M 4.99M 95.55% LINK
7 Resnet18Bn [64, 118, 178, 256] SGD+M 4.99M 91.97% LINK
8 Resnet18BnBb [64, 128, 232, 256] SGD+M 4.99M 92.39% LINK
9 Resnet18BbBn [64, 100, 160, 256] SGD+M 4.99M 92.73% -
10 Resnet56SGD [64, 96, 128, 190] SGD+M 4.98M 95.51% LINK
11 Resnet56Adam [64, 128, 232, 268] Adam 4.98M 93.37% LINK
12 Resnet156 [64, 72, 74, 90] SGD+M 4.99M 93.82% LINK

📦 Conclusion

The final model under 5 Million parameters and employing SGD achieved an accuracy of 95.55% on the CIFAR-10 test data set by systematically adjusting the hyperpameters and optimizers.

👩‍⚖️ Acknowledgement

We would like to thank everyone whose comments and suggestions helped us with the project. We appreciate the constant assistance of Professors Chinmay Hegde, Arsalan Mosenia, and the teaching assistant Teal Witter. Last but not least, we would like to express our sincere gratitude to the teaching staff for providing us with the chance to complete these tasks and projects. They were highly beneficial and relevant to comprehending the ideas.

resnet5m-cifar10's People

Contributors

jagennath-hari avatar navoday01 avatar venkatapalacherla avatar

Stargazers

 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.