HTTP Error in Downloading Models
See original GitHub issueWhile downloading the model using torch hub i am facing HTTP Error 403 in google colab and in kaggle aslo if i try it on my local system its giving me HTTP Error 404.
model, postprocessor = torch.hub.load(
'facebookresearch/detr', 'detr_resnet101_panoptic', pretrained=True, return_postprocessor=True, num_classes=250
)
Traceback (most recent call last):
File "autolabellingstuff.py", line 44, in <module>
'facebookresearch/detr', 'detr_resnet101_panoptic', pretrained=True, return_postprocessor=True, num_classes=250
File "/usr/local/lib/python3.7/dist-packages/torch/hub.py", line 362, in load
repo_or_dir = _get_cache_or_reload(repo_or_dir, force_reload, verbose)
File "/usr/local/lib/python3.7/dist-packages/torch/hub.py", line 162, in _get_cache_or_reload
_validate_not_a_forked_repo(repo_owner, repo_name, branch)
File "/usr/local/lib/python3.7/dist-packages/torch/hub.py", line 124, in _validate_not_a_forked_repo
with urlopen(url) as r:
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/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
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
HTTP status and error codes for JSON | Cloud Storage
The following document provides reference information about the status codes and error messages that are used in the Cloud Storage JSON API.
Read more >Sorting doesn't work - Faceswap Forum - The place to discuss ...
05/07/2020 23:37:24 ERROR Failed to download model. Exiting. (Error: 'HTTP Error 403: Forbidden', URL: 'https://github.com/deepfakes-models/ ...
Read more >How do I fix this error in the notebook? 12 - Hugging Face
HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/api/models/CompVis/stable-diffusion-v1-4/revision/fp16 (Request ID: ...
Read more >Downloading Models — polyglot 16.07.04 documentation
The subcommand download takes a package or more as an argument and download the specified packages in the polyglot_data directory. !polyglot download --help....
Read more >When I try to download StanfordNLP en model, it gives an error
I check Python source code for standfordnlp and found code which downloads model and I add print(download_url) to see url used to download...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could try using this: https://github.com/pytorch/vision/issues/4156#issuecomment-894768539
Thanks @Martynas99 this worked for me