Giter VIP home page Giter VIP logo

cnn-mnist's Introduction

CNN-MNIST

This repository is an effort towards training a CNN network on MNIST dataset. In order to make the training pipeline straightforward, the MNIST dataset will be downloaded automatically.

Installing the required packages

I assume you are using ubuntu 18/20.04 as your OS Please open a terminal and execute the following commands to install your dependencies:


sudo apt-get update

sudo apt-get install -y build-essential cmake git unzip pkg-config

sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-devlibpng12-dev

sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev

sudo apt-get install -y libxvidcore-dev libx264-dev

sudo apt-get install -y libgtk-3-dev

sudo apt-get install -y libhdf5-serial-dev graphviz

sudo apt-get install -y libopenblas-dev libatlas-base-dev gfortran

sudo apt-get install -y python-tk python3-tk python-imaging-tk

wget https://bootstrap.pypa.io/get-pip.py

sudo python get-pip.py

sudo python3 get-pip.py

sudo pip3 install virtualenv virtualenvwrapper

sudo rm -rf ~/.cache/pip get-pip.py

echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bashrc

echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> ~/.bashrc

echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc

Please create and enter the python env using the following commands:

mkvirtualenv cnn_mnist -p python3

Please enter the env using the following command:

workon cnn_mnist

Please install the followings inside your environemnt:

pip3 install numpy

pip3 install opencv-contrib-python

pip3 install scipy matplotlib pillow

pip3 install imutils h5py requests progressbar2

pip3 install scikit-learn scikit-image

pip3 install tensorflow==2.2.0

pip3 install keras

pip3 install pandas

pip3 install pyyaml

Running the code

cd code/
python3 train.py

Licence and copyright

Behnam Moradi

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.