Skip to content

In this project, implementation of MLP and CNN image prediction on Cifar-10 images dataset will be done also the comparison of both networks will be processed.

Notifications You must be signed in to change notification settings

dembasowfr/mlp-cnn-comparison-cifar10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLP and CNN comparison for CIFAR-10 dataset

CIFAR-10

Introduction

This project is a comparison between MLP and CNN for the CIFAR-10 dataset. The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training images and 10000 test images. The dataset is divided into five training batches and one test batch, each with 10000 images. The test batch contains exactly 1000 randomly-selected images from each class. The training batches contain the remaining images in random order, but some training batches may contain more images from one class than another. Between them, the training batches contain exactly 5000 images from each class.

Requirements

  • Python 3.6
  • Numpy
  • Matplotlib
  • Tensorflow
  • Keras

Usage

  • First install the required libraries using the following command:
pip install -r requirements.txt
  • Run the following command to train the MLP model:
python mlp.py
  • Run the following command to train the CNN model:
python cnn.py

Results

The MLP model achieved an accuracy of 50% on the test set, while the CNN model achieved an accuracy of 75% on the test set.

Conclusion

The CNN model outperformed the MLP model on the CIFAR-10 dataset. This is because CNNs are able to capture spatial information in the images, which is important for image classification tasks.

References

About

In this project, implementation of MLP and CNN image prediction on Cifar-10 images dataset will be done also the comparison of both networks will be processed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published