Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 403 returned from http://yann.lecun.com/exdb/mnist/ when downloading .gz files #20

Open
mahtin opened this issue Jul 1, 2024 · 2 comments

Comments

@mahtin
Copy link

mahtin commented Jul 1, 2024

Sadly the yann.lecun.com website is returning HTTP 403 errors when downloading the .gz files. Even after adding headers to the urlfetch() to make it look more like a browser, it still fails. (It fails in a browser also!).

This one line fix is all that I needed to get the code working. I used a different URL to download from.

< datasets_url = 'http://yann.lecun.com/exdb/mnist/'
> datasets_url = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

This simple fix solves the issue until the website responds cleanly. It would be better to fix the website as this code is in a lot of places.

@headingy
Copy link

You save my day. Thanks

@JoshInLisbon
Copy link

Thanks for this!

For a bit more clarification (e.g. when using images = mnist.train_images() to check things are working), you want:

mnist.datasets_url = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants