1.從官網下載數(shù)據(jù)集
https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
2.
把下載好的 cifar-10-python.tar.gz
移到C:\Users{你的用戶名}.keras\datasets,
并改名為cifar-10-batches-py.tar.gz
其他操作(如解壓)都不需要!

3.
(x,y),(x_test,y_test)=datasets.cifar10.load_data()
再次運行l(wèi)oad_data就不需要從網上下載了,而且這邊自動解壓,生成文件夾cifar-10-batches-py