Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Error 403: Forbidden, when using pretrained models #33234

Closed
RashmiHC opened this issue Feb 12, 2020 · 3 comments
Closed

HTTP Error 403: Forbidden, when using pretrained models #33234

RashmiHC opened this issue Feb 12, 2020 · 3 comments
Labels
module: hub triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@RashmiHC
Copy link

RashmiHC commented Feb 12, 2020

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

  1. Instantiate a pre-trained model using torchvision

import torchvision
model = torchvision.models.resnet18(pretrained=True)

Expected behavior

model instantiated with weights downloaded from "https://download.pytorch.org/models/resnet18-5c106cde.pth"

Environment

Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
  • PyTorch Version (e.g., 1.0): 1.2.0
  • OS (e.g., Linux): windows 10
  • How you installed PyTorch (conda, pip, source): conda
  • Build command you used (if compiling from source): -
  • Python version: 3.7
  • CUDA/cuDNN version: 10.0/7
  • GPU models and configuration: Nvidia Geforce 920m
  • Any other relevant information:

Additional context

cc @ailzhang

@ptrblck
Copy link
Collaborator

ptrblck commented Feb 12, 2020

Could you rerun the code now?
We had some server issues as explained here, which should be resolved now.

I just verified that I'm able to download checkpoints from torch hub again.

@zhangguanheng66
Copy link
Contributor

The problem should be resolved. Feel free to reopen the issue if you still have the problem.

@zhangguanheng66 zhangguanheng66 added module: hub triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Feb 12, 2020
@jarlva
Copy link

jarlva commented May 26, 2020

Getting 403 again. using wget it will start and at some point kick out:
wget https://conda.anaconda.org/pytorch/win-64/pytorch-1.5.0-py3.7_cuda102_cudnn7_0.tar.bz2

2020-05-26 13:10:27 (1.19 MB/s) - Read error at byte 134359349/587063170 (error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac). Retrying.

--2020-05-26 13:10:28-- (try: 2) https://binstar-cio-packages-prod.s3.amazonaws.com/5a11922b393ec61208ae9668/5e9f0fa4778a87708c39384a?response-content-disposition=attachment%3B%20filename%3D%22pytorch-1.5.0-py3.7_cuda102_cudnn7_0.tar.bz2%22%3B%20filename*%3DUTF-8''pytorch-1.5.0-py3.7_cuda102_cudnn7_0.tar.bz2&response-content-type=application%2Fx-tar&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=60&X-Amz-Date=20200526T100838Z&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEoaCXVzLWVhc3QtMSJIMEYCIQChVcVCnADpraXYRmkeHzt4S6KiMLuP3zgYPnt3v9EznwIhAOBeP8mlnoVUanDqQdkK2cMCgWB8fz%2B4uyfym52WyqUUKr0DCKP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMNDU1ODY0MDk4Mzc4IgwzNO5Tm6rYVQD8adAqkQP7ue1dLkO5jBPfeB6ERciXwT8igBzSINAGHQSUFcexiNlbn7XHBBrdta4A%2FTAdhDYe8o0uMhnhRtSHAyHpSBHWj6ZfPFuydMkxqy7fyBTZ%2FxJ8hdsYAZiHsNw5m2DKtKtseAeShyb7m9cvH8NvJGMZUkZ0P161A8SNskYVArTRLmYuF1rIoZTQAtg6EjSpwsv2cPdS4Dvrx1PDyM8hmcSPP4S%2FNW%2BGv9v3bFJUxK0Ez9Dns%2BQQJGoyrXEg6iavGO%2B3PcWlCYaBnibnVtNy7XN1hwT8QG3uC41caxqQ78LSfvZ%2BAmbvWWDX6TbZD4Dj96oiH1BTzeRgm7HF0Nh2VH4rn4AbXzynuKxePV%2FddMUu8zj4uTT8ozxs6hQ3zbICf8ZTUtmE%2FQEwu43LKtkczt5TFnop4BHXf6oqAq3RZVP0slvJJ2ZCn%2FkbDF3tCrBxyy1fw8Wem4Oz%2FDwKuTaS5lX3Gwu2J2sYuvBJYTn6tE6UPie4SiEfhxZjNHE%2FhmDkc%2Bnl3gvcRbYCtzyVwT2tWXqv1jDb0LP2BTrqAWwqhKrSHup4V5BmRYRXmOJWZz5z11f8zAcMmO4VELjkw%2Bs82ZNmT0Ihgpdgz3IU3yykNlVyw5DM6wlkT6%2F1K7XMEBeko5nVUamYZumem6kgVw6i0aBlXUn3h2iAuM91XoNyyKAyJwfkf3YUZyQQCwJKU5HQ76KxjvySa%2BZ8BvJvZruvw0is4KL4lAZugI8o4G8y0gTGoopqmKzWv0EXmdbLxlbI2qqR7IWsioSLNPYAERTFRGgKF4Qv42%2FB9zIx6dGJMWkZTTLh7%2FrarEuu79FQ5Ckx1kmMx6s7rziJ9xF8QVi%2Bzq0nbaxcQg%3D%3D&X-Amz-Credential=ASIAWUI46DZFJ7T7MIML%2F20200526%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=537665f5929e45afde3653d72063ae4aa7c9e29c0fe364381830a1cca4dd4dec
Connecting to binstar-cio-packages-prod.s3.amazonaws.com (binstar-cio-packages-prod.s3.amazonaws.com)|52.216.112.51|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-05-26 13:10:29 ERROR 403: Forbidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: hub triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

4 participants