rasbt / deeplearning-models

A collection of various deep learning architectures, models, and tips
MIT License
16.74k stars 4.02k forks source link

HTTPError: HTTP Error 503: Service Unavailable #51

Open jS5t3r opened 3 years ago

jS5t3r commented 3 years ago

deeplearning-models/pytorch_ipynb/cnn/cnn-resnet50-mnist-dataparallel.ipynb

Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to data/MNIST/raw/train-images-idx3-ubyte.gz
0it [00:00, ?it/s]
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
<ipython-input-4-38058be550e3> in <module>
      5 # Note transforms.ToTensor() scales input images
      6 # to 0-1 range
----> 7 train_dataset = datasets.MNIST(root='data', 
      8                                train=True,
      9                                transform=transforms.ToTensor(),

MNIST download not working...

rasbt commented 3 years ago

Yes, this happened to me to a couple of days ago. I think it's because the MNIST website is currently down: http://yann.lecun.com/exdb/mnist/

In your case train_dataset = datasets.MNIST(root='data', ...) will create a folder MNIST to save the dataset in a 'data' subfolder. Here is a zipped version of an MNIST folder that I still have locally. I you unzip it and put it there, it should work: https://github.com/rasbt/stat453-deep-learning-ss21/blob/main/MNIST.zip