Giter VIP home page Giter VIP logo

mnist_png's People

Contributors

myleott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mnist_png's Issues

Convert EMNIST dataset to .png

@myleott

Hi Myle Ott,

Great work ๐Ÿ‘
I used your script to convert my EMNIST-digits to the required format and voila am happy with the results.
But I cant get around to do the same with letters! (emnist-letters-train-images-idx3-ubyte.gz | emnist-letters-train-labels-idx1-ubyte.gz)

Error:

writing ./train/X/0.png
writing ./train/H/1.png
writing ./train/Q/2.png
writing ./train/P/3.png
writing ./train/X/4.png
writing ./train/R/5.png
writing ./train/N/6.png
writing ./train/L/7.png
writing ./train/W/8.png
writing ./train/Y/9.png
writing ./train/K/10.png
writing ./train/O/11.png
writing ./train/S/12.png
writing ./train/V/13.png
Traceback (most recent call last):
  File "convert_mnist_to_png.py", line 76, in <module>
    path.join(output_path, dataset))
  File "convert_mnist_to_png.py", line 55, in write_dataset
    output_filename = path.join(output_dirs[label], str(i) + ".png")
IndexError: list index out of range

I'm new to the field. Any help would be appreciated.
Thanks!

Error for running, list index out of range

Hello, sorry
Thanks for sharing!!
I was trying to use it but I had an error, could you help me, please?
I downloaded and I tested with the original mnist compressed and uncompressed and also with python 2 and python 3

python convert_mnist_to_png.py /home/andre/mnistX/in3/ /home/andresviv/mnistX/out/

Log:
andresviv@andresviv-ThinkPad-P50:/mnistX/ULTIMATE/01/mnist_png-master$ python convert_mnist_to_png.py /home/andresviv/mnistX/in3/ /home/andresviv/mnistX/out/
writing /home/andresviv/mnistX/out/training/0/0.png
writing /home/andresviv/mnistX/out/training/3/1.png
Traceback (most recent call last):
File "convert_mnist_to_png.py", line 68, in
path.join(output_path, dataset))
File "convert_mnist_to_png.py", line 47, in write_dataset
output_filename = path.join(output_dirs[label], str(i) + ".png")
IndexError: list index out of range
andresviv@andresviv-ThinkPad-P50:
/mnistX/ULTIMATE/01/mnist_png-master$

image

Thank you

50 K images

Hi,

Why do you have about 60k images per class while the total number of the MNIST data is 60K?

Arguments

Please I'm having problems understanding what the arguments in the console are meant to be. I keep getting this: usage: convert_mnist_to_png.py <input_path> <output_path>. Can I get an example of what it should be?

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.