mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Resolve HTTP Error 503: Service Unavailable for MNIST dataset
This commit is contained in:
parent
aa60a8368f
commit
f7df2f805b
1 changed files with 9 additions and 0 deletions
|
|
@ -257,6 +257,15 @@ class MNISTWrapper():
|
|||
opener.addheaders = [('User-agent', 'Mozilla/5.0')]
|
||||
urllib.request.install_opener(opener)
|
||||
|
||||
# TODO: Remove this temporary fix when the issue https://github.com/pytorch/vision/issues/3549 is resolved
|
||||
# Resource http://yann.lecun.com/exdb/mnist/ is not available
|
||||
datasets.MNIST.resources = [
|
||||
('https://ossci-datasets.s3.amazonaws.com/mnist/train-images-idx3-ubyte.gz', 'f68b3c2dcbeaaa9fbdd348bbdeb94873'),
|
||||
('https://ossci-datasets.s3.amazonaws.com/mnist/train-labels-idx1-ubyte.gz', 'd53e105ee54ea40749a09fcbcd1e9432'),
|
||||
('https://ossci-datasets.s3.amazonaws.com/mnist/t10k-images-idx3-ubyte.gz', '9fb629c4189551a2d022fa330f9573f3'),
|
||||
('https://ossci-datasets.s3.amazonaws.com/mnist/t10k-labels-idx1-ubyte.gz', 'ec29112dd5afa0611ce80d1b7f02629c')
|
||||
]
|
||||
|
||||
args_batch_size = 64
|
||||
args_test_batch_size = 1000
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue