How to format my own images to match the MNIST Dataset?
zhuqunxi opened this issue · 1 comments
zhuqunxi commented
leonbottou commented
This is not really an issue with the qmnist dataset and code.
I suggest you read the paper. Then you can check function fim_mnist_prepro
at
qmnist/making_qmnist/xnist.lsh
Line 360 in 7f80561
save-idx3-ubyte
. This function rescales, recenters, and discretize in a way that we believe is quite close to what was done with mnist.
Now all this is written in Lush which is a deep learning framework that predates PyTorch by two or three decades (and even predates Python by one decade). It is superficially very different but was largely copied in further frameworks (e.g. the use of tensors, the tensor compiler design, etc.) You can learn about lush at lush.sf.net.