dataset=torchvision.datasets.MNIST(root=“data/”,download=True,transform=torchvision.transforms.ToTensor())
Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to data_nn/MNIST/raw/train-images-idx3-ubyte.gz
0/? [00:00<?, ?it/s]
HTTPError Traceback (most recent call last)
in ()
----> 1 dataset = torchvision.datasets.MNIST(“data_nn/”,download=True,transform=torchvision.transforms.ToTensor())
11 frames
/usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
647 class HTTPDefaultErrorHandler(BaseHandler):
648 def http_error_default(self, req, fp, code, msg, hdrs):
→ 649 raise HTTPError(req.full_url, code, msg, hdrs, fp)
650
651 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 403: Forbidden