Giter Club home page Giter Club logo

image-classifier-with-pytorch's Introduction

Image Classifier with PyTorch

Built a convolutional neural network using PyTorch to compare with a multi-layer perceptron for image classification on CIFAR-10. Using the CIFAR-10 dataset with the default test and train partitions.

The CIFAR-10 dataset consists of 60,000 32x32 colour images (3x32x32) in 10 classes, with 6,000 images per class. There are 50,000 training images and 10,000 test images. The training set is split into 5 batches, each with 10,000 images while the testing set is one batch of 10,000 images. The classes of images are split evenly among the batches.

The CIFAR10 dataset classes include: 'airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', and 'truck'. Each class is exclusive and there is no overlap between classes

writeup.pdf: The main report of the project

Multilayer Perceptron

Implement the model from scratch including backpropogation and the gradient descent algorithm (SGD)

Run MLP_1.ipynb to load the data and run the model

Convoluational Neural Network

Convolutional Neural Network built with PyTorch and torchvision. The initial CNN, inspired by LeNet-5, had two convolutional layers (with max pooling) followed by 3 fully connect layers

Run Convolutional_Neural_Network.ipynb to load the data and run the model

Results

Compared the test and train performance of the above two models as a function of training epoch. Hyper-parameters such as the number of layers, number of units, and acivation functions were adjusted to test performance

Please read writeup.pdf for full results and discussion. You can download the PDF to view it: Download PDF.

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.