9/09/2015

mnist image dataset (jpg files)

The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downloaded from http://yann.lecun.com/exdb/mnist/.
MNIST data is provided in binary file for user convenience.

But, in my case, this binary type is more difficult.
I am needed image files.

I want to start whole process of deep learning(make leveldb file, learning, classify) using MNIST data and compare to example result in caffe model.


This site tells me a hint how to make image datas.

This is my matlab code for making jpg file.

---
%%
clc;
clear all;

% Change the filenames if you've saved the files under different names
% On some platforms, the files might be saved as
% train-images.idx3-ubyte / train-labels.idx1-ubyte


images = loadMNISTImages('t10k-images.idx3-ubyte');
labels = loadMNISTLabels('t10k-labels.idx1-ubyte');

%images = loadMNISTImages('train-images.idx3-ubyte');
%labels = loadMNISTLabels('train-labels.idx1-ubyte');

% We are using display_network from the autoencoder code
display_network(images(:,1:60000)); % Show the first 100 images
disp(labels(1:1));

% save one digit number to jpg file
%{
[w h]=size(images)
endIndex = h;

dindex=zeros(10,1);
for j=1:endIndex
aImg = reshape( images(:,j), 28, 28);
imshow(aImg);
label = labels(j);
dindex( label+1 ) = dindex( label+1 ) +1;
dataD = strcat('./data2/mnist_', num2str( label ), '_', num2str( dindex(label+1) ), '.jpg' );
%dindex
imwrite(aImg, dataD);
dataD
end

fileID = fopen('test.txt','w');
%make path and label
dindex=zeros(10,1);
for j=1:endIndex
label = labels(j);
dindex( label+1 ) = dindex( label+1 ) +1;
dataD = strcat('/data2/mnist_', num2str( label ), '_', num2str( dindex(label+1) ), '.jpg' );
fprintf(fileID,'%s %d\n',dataD, label);
end
fclose(fileID);
%}
---

And images of mnist files


If you need images of mnist, request to me, I will send by email.
The file size is approximately 37 MB.

Thank you.

You can download all jpeg images and origin binary data from here:

39 comments:

  1. Send me a whole program because they do not work for me mail janek1-17@o2.pl

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. you need additionally
      loadMNISTImages.m
      loadMNISTLabels.m
      display_network.m

      Refer to this address.
      http://ufldl.stanford.edu/wiki/resources/mnistHelper.zip
      Thank you

      Delete
    3. Anonymous1/5/16 00:40

      For loadMNISTImages.n
      function images = loadMNISTImages(filename)

      What should replace the "filename"?

      Delete
  2. Plz sent me all train and test images dataset, i tried this MATLAB code but it doesn't work so kindly email me on zakia.yahya134@gmail.com

    ReplyDelete
    Replies
    1. https://www.amazon.com/clouddrive/share/S4KGsmQIRtfINLbZ9O3nF5QNh5Xk4ZG702sWKKhybDf?ref_=cd_ph_share_link_copy

      This link is the address that mnist files shareable.
      Thank you.

      Delete
  3. Hi JH Kim!

    Im on project "RICE GRADING USING IMAGE PROCESSING" that means need to know how many percent good rice and not good rice. So i need to extract some features from image and training. Can you give me some suggestions. How can i extract feature and what the good method to train them.
    Many thanks!!

    ReplyDelete
    Replies
    1. I think it is not easy project.
      For more detail advise, I should see test image.
      First, we should detect each rise and pose normalization and grade recognition.

      Delete
  4. Hello.
    Please I want to create a dataset of my own images in idx3-ubyte format. How can it be done please? My email is Ouche.joseph@gmail.com

    ReplyDelete
    Replies
    1. Why would you ever want to do this lol

      Delete
  5. Hello.
    Please I want to create a dataset of my own images in idx3-ubyte format. How can it be done please? My email is Ouche.joseph@gmail.com

    ReplyDelete
  6. Hello.
    Please I want to create a dataset of my own images in idx3-ubyte format. How can it be done please? My email is Ouche.joseph@gmail.com

    ReplyDelete
  7. Hello.
    Please I want to create a dataset of my own images in idx3-ubyte format. How can it be done please? My email is Ouche.joseph@gmail.com

    ReplyDelete
    Replies
    1. your question is that to create idx3-ubyte format from images right?
      That way I don't know.
      This example is contrary case.
      Sorry.

      Delete
  8. hi please send me the jpeg files to neelima.niz@gmail.com
    as iam doing research i request your kind help

    ReplyDelete
  9. it will be so kind of you if u can send me the jpeg images. i tried alot to save the images in jpeg format. but iam getting the error. please send me the jpeg files. thankyou

    ReplyDelete
    Replies
    1. https://www.amazon.com/clouddrive/share/S4KGsmQIRtfINLbZ9O3nF5QNh5Xk4ZG702sWKKhybDf?ref_=cd_ph_share_link_copy

      data is here

      Delete
  10. This comment has been removed by the author.

    ReplyDelete
  11. http://codegists.com/snippet/python/mnist-to-jpgpy_ischlag_python

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. https://github.com/tiny-dnn/tiny-dnn/wiki/Data-Format

    ReplyDelete
  14. way to convert image data to binary format https://github.com/tiny-dnn/tiny-dnn/wiki/Data-Format

    ReplyDelete
  15. Hello please, could you share with me the mnist dataset whole in images? thanks andresviv2012@gmail.com

    ReplyDelete
    Replies
    1. https://www.amazon.com/clouddrive/share/S4KGsmQIRtfINLbZ9O3nF5QNh5Xk4ZG702sWKKhybDf?_encoding=UTF8&mgh=1&ref_=cd_ph_share_link_copy

      Delete
  16. Thanks its here https://www.amazon.com/clouddrive/share/S4KGsmQIRtfINLbZ9O3nF5QNh5Xk4ZG702sWKKhybDf?_encoding=UTF8&mgh=1&ref_=cd_ph_share_link_copy

    ReplyDelete
  17. Hello,
    Sir can you please tell me how can i convert 530x572 sized png image to MNIST data format?

    ReplyDelete
  18. Anonymous30/4/18 14:28

    Who the hell uses an EGG format to zip files. Can you zip, tar, gz, rar or 7zip files like normal parson

    ReplyDelete
  19. hi please send me the jpeg files to asmaaismail5@yahoo.com

    ReplyDelete
  20. This Nintendo DS Converter is the most dependable DPG changing over device so you can utilize it with no stress.https://anyconv.com

    ReplyDelete
  21. The clients of Macintosh regularly face a little misfortune while attempting to play windows good configurations on Mac as both the working frameworks are very unique in activity. FLV to MP4 video converter

    ReplyDelete
  22. The dimensions of the images are (28, 28, 1) not (28, 28, 3) as they should be :(

    ReplyDelete
  23. Point received and well taken, when I disagree it’s not a reason to argue. No problem at all. iphone sketch

    ReplyDelete
  24. I really like looking through and I think this website got some really useful stuff on it! . iphone template

    ReplyDelete
  25. Numerous understudies battle with a genuine visual computerization work since they don't have the foggiest idea what's in store and become overpowered. Professional graphic design

    ReplyDelete
  26. Great work! That is the type of info that are supposed to be shared across the web. vanguardngr.com

    ReplyDelete