HTTPError while ImageNet dataset

HTTPError Traceback (most recent call last)

in () ----> 1 DA=torchvision.datasets.ImageNet("/",download=True,transform=transforms.ToTensor())

/usr/lib/python3.6/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs) 648 class HTTPDefaultErrorHandler(BaseHandler): 649 def http_error_default(self, req, fp, code, msg, hdrs): --> 650 raise HTTPError(req.full_url, code, msg, hdrs, fp) 651 652 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 404: Not Found

Hi,

You might want to upgrade your torchvision.
But as you can see in the new code here, the dataset is not available publicly unfortunately. You will need to to download the dataset by yourself.

1 Like