From 2378e15cabf68d084fc5b65b541fdfce6f18114e Mon Sep 17 00:00:00 2001 From: Rohit Kumar Srivastava Date: Fri, 12 Mar 2021 00:21:34 +0000 Subject: [PATCH] downloading MNIST dataset from alternate URL --- example/image-classification/train_mnist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/image-classification/train_mnist.py b/example/image-classification/train_mnist.py index d47521fc8ef8..2b256e22653e 100755 --- a/example/image-classification/train_mnist.py +++ b/example/image-classification/train_mnist.py @@ -32,7 +32,7 @@ def read_data(label, image): """ download and read data into numpy """ - base_url = 'http://yann.lecun.com/exdb/mnist/' + base_url = 'https://web.archive.org/web/20160828233817/http://yann.lecun.com/exdb/mnist/' with gzip.open(download_file(base_url+label, os.path.join('data',label))) as flbl: magic, num = struct.unpack(">II", flbl.read(8)) label = np.fromstring(flbl.read(), dtype=np.int8)