目录导航
运行ch03/mnist_show.py的结果
"D:\Program Files\Python\Python37\python.exe" D:/Code/CodePython/02_dl_from_scratch_demo/ch03/mnist_show.py Converting train-images-idx3-ubyte.gz to NumPy Array ... Done Converting train-labels-idx1-ubyte.gz to NumPy Array ... Done Converting t10k-images-idx3-ubyte.gz to NumPy Array ... Done Converting t10k-labels-idx1-ubyte.gz to NumPy Array ... Done Creating pickle file ... Done! 0 (784,) (28, 28) Process finished with exit code 0
目录dataset_all
里会保存一个mnist.pkl
文件。注意保存和读取pkl文件的Python版本必须保持一致,否则会报错。比如,在一台电脑上使用Python3.7生成并保存pkl文件,而在另一台电脑上读取pkl文件就会报错。一个解决办法就是不把pkl文件添加到git中。