question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP Error in Downloading Models

See original GitHub issue

While 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Martynas99commented, Sep 2, 2021
0reactions
anantgupta129commented, Sep 2, 2021

You could try using this: pytorch/vision#4156 (comment)

Thanks @Martynas99 this worked for me

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found