Skip to content

isaacdu84/CIFAR100_image_classification

Repository files navigation

Machine learning II final project - Group 2

This repository is for the final project of Machine learning II at the George Washington University. Please read the sections below for more detailed instructions on running the scripts

Multilayer perceptron

The CIFAR100 data can be conveniently obtained from pytorch's built-in module and does not need to obtained from external sources.
MLP in PyTorch.py contains the main training model and accuracy result.
MLP-class-accuracy plot.py contains visualization for top10 accuracy classes in 100 classes and 20 subclasses.
MLP-confusion matrix.py contains confusion matrix for 100 classes and 20 subclasses, also contains confusion matrix plot for 20 subclasses.

Convolution neural network

The CIFAR100 data can be conveniently obtained from pytorch's built-in module and does not need to obtained from external sources.
CNN models are built under the files from "CV_1.py" through "CV_7.py". There are seven methods are proposed to improve accuracy. Please see the “Final-Group-Project-Report.PDF” for more information. Each improvement is explained in the section of Experimental setup in the file of “Final-Group-Project-Report.PDF.”

Transfer learning

"Transfer_learning_training.py" includes python scripts that download the Inception model from Google and ingest it into Tensorflow. It also loads the CIFAR100 dataset from Keras API, sends the train and test images into the model and save (using pickle) the output from this model to the local directory for subsequent modeling.
Be adviced that executing this script will take about 1.5 hour on GPU. Fortunately, this only needs to be done once.

"Transfer_learning.py" includes python scripts that load the output from the Inception model and send them through MLP layers. This script also includes lines for visualization of the peformance and confusion matrix.

About

GWU Machine Learning II (deep learning) final project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages