While downloading the pertained weights: urllib.error.HTTPError: HTTP Error 403: The specified account is disabled.
See original GitHub issueI’m using EfficientNet-B1 pre trained weights and getting 403 HTTP status code. Here is the entire error log:
Downloading: "https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b1-f1951068.pth" to /root/.cache/torch/checkpoints/efficientnet-b1-f1951068.pth
Traceback (most recent call last):
File "train.py", line 231, in <module>
main()
File "train.py", line 145, in main
model = MODEL_DISPATCHER[BASE_MODEL](pretrained=True)
File "/content/models.py", line 34, in __init__
self.effNet = EfficientNet.from_pretrained('efficientnet-b1', in_channels=3)
File "/usr/local/lib/python3.6/dist-packages/efficientnet_pytorch/model.py", line 211, in from_pretrained
load_pretrained_weights(model, model_name, load_fc=(num_classes == 1000), advprop=advprop)
File "/usr/local/lib/python3.6/dist-packages/efficientnet_pytorch/utils.py", line 327, in load_pretrained_weights
state_dict = model_zoo.load_url(url_map_[model_name])
File "/usr/local/lib/python3.6/dist-packages/torch/hub.py", line 492, in load_state_dict_from_url
download_url_to_file(url, cached_file, hash_prefix, progress=progress)
File "/usr/local/lib/python3.6/dist-packages/torch/hub.py", line 391, in download_url_to_file
u = urlopen(url)
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: The specified account is disabled.```
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Problem HTTP error 403 in Python 3 Web Scraping
This same thing is happening to me with OfferUp. You can create a new class called AppURLopener which overrides the user-agent with Mozilla....
Read more >HTTP Error when downloading a release from python urllib
Summary I am unable to use python urllib.request to download a public release from source. ... HTTPError: HTTP Error 403: Forbidden ...
Read more >HTTP Error 403 Forbidden: What It Means and How to Fix It
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it...If authentication credentials ...
Read more >Rhodes Goerzen THIRD EDITION
oversimplify your code; you will tend to ignore many error conditions that ... specified by combining an IP address with a mask that...
Read more >HTTP Error 403.14 - Forbidden when you open an IIS webpage
Description of HRESULT : The Web server is configured to not list the contents of this directory. Resolution for users. If you're a...
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
See #150 – fix is coming today!
Fixed! I’m closing this issue – reopen if you encounter problems 😃