edit mirror for mnist data
@@ -6,16 +6,28 @@ __version__ = "0.0.1"
def _adapt_dataset_urls():
from torchvision.datasets import MNIST
prev_mnist_urls = MNIST.resources
+ # new_resources = [
+ # ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ # 'train-images-idx3-ubyte.gz', prev_mnist_urls[0][1]),
+ # ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ # 'train-labels-idx1-ubyte.gz', prev_mnist_urls[1][1]),
+ # ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ # 't10k-images-idx3-ubyte.gz', prev_mnist_urls[2][1]),
+ # ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ # 't10k-labels-idx1-ubyte.gz', prev_mnist_urls[3][1])
+ # ]
+
new_resources = [
- ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ ('https://github.com/mkolod/MNIST/raw/master/'
'train-images-idx3-ubyte.gz', prev_mnist_urls[0][1]),
- ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ ('https://github.com/mkolod/MNIST/raw/master/'
'train-labels-idx1-ubyte.gz', prev_mnist_urls[1][1]),
- ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ ('https://github.com/mkolod/MNIST/raw/master/'
't10k-images-idx3-ubyte.gz', prev_mnist_urls[2][1]),
- ('https://storage.googleapis.com/cvdf-datasets/mnist/'
+ ('https://github.com/mkolod/MNIST/raw/master/'
't10k-labels-idx1-ubyte.gz', prev_mnist_urls[3][1])
]
+
MNIST.resources = new_resources
