idx2ndarray is a Python module which can help you convert tabular data in IDX format (e.g. MNIST database), to numpy ndarray