question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downloading MNIST dataset with torchvision gives HTTP Error 503

See original GitHub issue

🐛 Bug

I am getting a 503 error when I try to download MNIST dataset with torchvision 0.9.0. This is probably due to the fact that http://yann.lecun.com/exdb/mnist/ is unavailable, so apart from pproviding a new link to the dataset, I don’t see how this problem can be solved

To Reproduce

Steps to reproduce the behavior:

from torchvision.datasets import MNIST

MNIST(".", download=True)

cc @pmeier

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
baijumeswanicommented, Mar 11, 2021

It appears that http://yann.lecun.com/exdb/mnist/ is unavailable at this time. A temporary solution before downloading MNIST:

from torchvision import datasets
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')
        ]
4reactions
madhavajaycommented, Mar 12, 2021

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Error when trying to download MNIST data
I was having the same 503 error and this worked for me ... torchvision from torchvision.datasets import MNIST # Download training dataset ......
Read more >
MNIST server down - vision - PyTorch Forums
Hello together, can someone confirm, that the server for downloading MNIST dataset is down? I cannot access the dataset by the dataloader.
Read more >
Problems downloading the official MNIST data set? Here is a ...
urllib.error.HTTPError: HTTP Error 503: Service Unavailable. It looks like Yann LeCun, who hosts the data set, added some Basic Auth login ...
Read more >
MNIST Example — sinabs 0.2.1.dev74 documentation - GitLab
As the title of this tutorial states, we will train the above model for MNIST digit classification task. We borrow the Dataset definition...
Read more >
What is HTTP error 503 and how do you fix it? - IT PRO
While it might be worth troubleshooting for issues on your own network, in the majority of cases, a 503 error is caused by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found