Coder Social home page Coder Social logo

alisonbunce / mnist.pkl.gz-dataset-creator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tikroute/mnist.pkl.gz-dataset-creator

1.0 0.0 0.0 2.42 MB

This simple script converts your own images to mnist.pkl.gz dataset to train your model for DBN.py from deeplearning.net

License: GNU General Public License v3.0

Python 46.39% Shell 43.85% Batchfile 9.76%

mnist.pkl.gz-dataset-creator's Introduction

mnist.pkl.gz-dataset-creator

If you are using tutorial from deeplearning.net you might want to use your own set of data to train the model. you can easily create your mnist.pkl.gz dataset from scratch with your own images with this little tool.

This simple script converts your own images to mnist.pkl.gz dataset to train your model for DBN.py from deeplearning.net

how to use

step 1: First prepare your images in 3 sets in 3 folders like below:

train

test

valid

step 2: Then make 3 csv file containing your classess. I made them like this:

train.csv

test.csv

valid.csv

step 3: You have to make your images resized and in garyscale format, for doing so use the resize-script.sh script with the following commands:

sudo chmode +x resize-script.sh
./resize-script.sh

It checks all images and converts them into grayscale 28x28 png images.

step 4: Finally run the image-to-mnist.py with the following command:

python image-to-mnist.py

enjoy ;)

I searched lots of websites and read a lot of comments to finnaly found this solution, hope you use it and save you a lot of headache and time.

mnist.pkl.gz-dataset-creator's People

Stargazers

 avatar

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.