myleott / mnist_png Goto Github PK
View Code? Open in Web Editor NEWMNIST converted to PNG format
License: GNU General Public License v2.0
MNIST converted to PNG format
License: GNU General Public License v2.0
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!
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//mnistX/ULTIMATE/01/mnist_png-master$
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:
Thank you
Hi,
Why do you have about 60k images per class while the total number of the MNIST data is 60K?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.