读取一组MNIST数据的完整代码如下
详细解释见blog:
https://blog.csdn.net/Mimido_luoluo/article/details/104514381
import numpy as np
from matplotlib import pyplot as plt
import PIL as pil
import cv2 as cv
#读取数据的过程,如果需读取所有的数据,将 count = -1 即可
#读取 label 值
label_path=”F:\\Files\Deep Learning\\MNISTdata\\t10k-labels.idx1-uby