Menu

Tree [bcd369] master /
 History

HTTPS access


File Date Author Commit
 CIFAR-10 2018-02-26 Zishan Sami Zishan Sami [c44f88] editing readme files
 MNIST 2018-02-26 Zishan Sami Zishan Sami [7d8fb2] removing unnecessary javascript files
 images 2018-02-26 Zishan Sami Zishan Sami [e444f2] editing readme files
 static 2018-02-26 Zishan Sami Zishan Sami [7d8fb2] removing unnecessary javascript files
 templates 2018-02-26 Zishan Sami Zishan Sami [7d8fb2] removing unnecessary javascript files
 .gitignore 2019-04-16 zishansami102 zishansami102 [6aa18b] giitignore added
 LICENSE 2017-06-09 Zishan Sami Zishan Sami [109771] Initial commit
 Procfile 2017-11-12 Zishan Sami Zishan Sami [1c6a34] app added
 README.md 2024-07-09 zishansami102 zishansami102 [bcd369] add eazyseo
 app.py 2018-02-23 Zishan Sami Zishan Sami [36a900] new app & opencv build
 preprocessing.py 2018-02-22 Zishan Sami Zishan Sami [45cafc] final done
 preprocessing.pyc 2018-02-26 Zishan Sami Zishan Sami [7d8fb2] removing unnecessary javascript files
 requirements.txt 2019-04-16 zishansami102 zishansami102 [4aaf66] flask version update

Read Me

Convolutional Neural Network from scratch Awesome

Live Demo

Objective of this work was to write the Convolutional Neural Network without using any Deep Learning Library to gain insights of what is actually happening and thus the algorithm is not optimised enough and hence is slow on large dataset like CIFAR-10.
This piece of code could be used for learning purpose and could be implemented with trained parameter available in the respective folders for any testing applications like Object Detection and Digit recognition.

It's Accuracy on MNIST test set is above 97%.

alt text

Architecture

INPUT - CONV1 - RELU - CONV2 - RELU- MAXPOOL - FC1 - OUT

alt text

alt text

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Followings are also required if working/testing on the app.py

  • Flask - A microframework for Python
  • Gunicorn - A Python WSGI HTTP Server for UNIX
  • OpenCV - An open-source library that includes several hundreds of computer vision algorithms

Directories

  • CIFAR-10: Object detection with CIFAR-10
  • MNIST: Handwritten Digits Recognition with MNIST

Installing

  • Clone the repository
git clone https://github.com/zishansami102/CNN-from-Scratch
  • Downlad the dataset and copy that to it's corresponding folder(CIFAR-10/MNIST).
  • Move into the required directory (/CNN-from-Scratch/MNIST or /CNN-from-Scratch/CIFAR-10) and then run the following command to start training model
python train.py

Output:

alt text

  • To load pre-trained models, change the pickle filename from 'output.pickle' to 'trained.pickle' in run.py: line No. - 30-31 and comment out the training part form the code in run.py: line No. - 42-111

Application Testing/Running

  • In the the directory /CNN-from-Scratch run the following command.
python app.py

App will start running on the local server http://127.0.0.1:5000 as shown below :

alt text

Contributing

Mail me at zishansami102@gmail.com if you want to contribute to this project

Acknowledgments

Other Proud Works: An AI Powered Website Builder

Makeweb.ai - Build websites with AI, publish in seconds
EazySEO.co - Automate your SEO start to end

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.