It comes from here (I think). https://archive.ics.uci.edu/ml/datasets/Optical+Recognition+of+Handwritten+Digits It's not derived from MNIST, though also based on NIST data.