keras cifar10.load_data()自己下载数据
1.使用keras时,导入cifar10数据会自动下载(https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz),但是有时会下载出错;
2.解决:
(1)自己下载cifar-10-python.tar.gz,然后将文件放到对应路径(~./keras/datasets/);
(2)将文件名称cifar-10-python.tar.gz改为cifar-10-batches-py.tar.gz。
这两步操作综合,在所下载文件cifar-10-python.tar.gz的根目录下,使用如下命令:
cp cifar-10-python.tar.gz ~./keras/datasets/cifar-10-batches-py.tar.gz