I ran into the same issue today when using a conda environment with pytorch 1.9.0 installed.
When my python script hits the following line:
model = torch.hub.load(“pytorch/vision:v0.6.0”, “inception_v3”, pretrained=True)
i run into this error   File “web.py”, line 26, in classify_product
product_h1 = Product_h1().getmodel()
File “/home/frontier/01_Programs/00_code/fabric_tag/models.py”, line 97, in init
model = torch.hub.load(“pytorch/vision:v0.6.0”, “inception_v3”, pretrained=True)
File “/home/frontier/anaconda3/lib/python3.8/site-packages/torch/hub.py”, line 362, in load
repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, verbose)
File “/home/frontier/anaconda3/lib/python3.8/site-packages/torch/hub.py”, line 162, in _get_cache_or_reload
_validate_not_a_forked_repo(repo_owner, repo_name, branch)
File “/home/frontier/anaconda3/lib/python3.8/site-packages/torch/hub.py”, line 124, in _validate_not_a_forked_repo
with urlopen(url) as r:
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 222, in urlopen
return opener.open(url, data, timeout)
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 531, in open
response = meth(req, response)
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 640, in http_response
response = self.parent.error(
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 569, in error
return self._call_chain(*args)
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 502, in _call_chain
result = func(*args)
File “/home/frontier/anaconda3/lib/python3.8/urllib/request.py”, line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: rate limit exceeded
Is there any solution workaround? I saw some people installed another pytorch version…