Skip to content Skip to sidebar Skip to footer

Convert Mnist Data From Numpy Arrays To Original Ubyte Data

I used this code almost exactly, just changing the line: f = gzip.open('../data/mnist.pkl.gz', 'rb') training_data, validation_data, test_data = cPickle.load(f) to these lines: im

Solution 1:

Once you have the data in numpy arrays, you can convert the numpy arrays into mnist format refer this https://github.com/davidflanagan/notMNIST-to-MNIST/blob/17823f4d4a3acd8317c07866702d2eb2ac79c7a0/convert_to_mnist_format.py#L92

You can read more the the mnist data format here http://yann.lecun.com/exdb/mnist/

You can also verify your converted images from here https://stackoverflow.com/a/53181925

Post a Comment for "Convert Mnist Data From Numpy Arrays To Original Ubyte Data"