提交 a50785b0 编写于 作者: X xiaoting 提交者: lvmengsi

modifed cifar download url, test=develop (#19623)

上级 8cb54ede
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
""" """
CIFAR dataset. CIFAR dataset.
This module will download dataset from This module will download dataset from https://dataset.bj.bcebos.com/cifar/cifar-10-python.tar.gz and https://dataset.bj.bcebos.com/cifar/cifar-100-python.tar.gz, parse train/test set into
https://www.cs.toronto.edu/~kriz/cifar.html and parse train/test set into
paddle reader creators. paddle reader creators.
The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes,
...@@ -39,7 +38,7 @@ from six.moves import cPickle as pickle ...@@ -39,7 +38,7 @@ from six.moves import cPickle as pickle
__all__ = ['train100', 'test100', 'train10', 'test10'] __all__ = ['train100', 'test100', 'train10', 'test10']
URL_PREFIX = 'https://www.cs.toronto.edu/~kriz/' URL_PREFIX = 'https://dataset.bj.bcebos.com/cifar/'
CIFAR10_URL = URL_PREFIX + 'cifar-10-python.tar.gz' CIFAR10_URL = URL_PREFIX + 'cifar-10-python.tar.gz'
CIFAR10_MD5 = 'c58f30108f718f92721af3b95e74349a' CIFAR10_MD5 = 'c58f30108f718f92721af3b95e74349a'
CIFAR100_URL = URL_PREFIX + 'cifar-100-python.tar.gz' CIFAR100_URL = URL_PREFIX + 'cifar-100-python.tar.gz'
...@@ -95,7 +94,7 @@ def test100(): ...@@ -95,7 +94,7 @@ def test100():
CIFAR-100 test set creator. CIFAR-100 test set creator.
It returns a reader creator, each sample in the reader is image pixels in It returns a reader creator, each sample in the reader is image pixels in
[0, 1] and label in [0, 9]. [0, 1] and label in [0, 99].
:return: Test reader creator. :return: Test reader creator.
:rtype: callable :rtype: callable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册