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

resnet18 demo not working. Shows following error message #230

Closed
gchetty opened this issue Jun 24, 2021 · 4 comments
Closed

resnet18 demo not working. Shows following error message #230

gchetty opened this issue Jun 24, 2021 · 4 comments

Comments

@gchetty
Copy link

gchetty commented Jun 24, 2021

HTTPError Traceback (most recent call last)
in ()
----> 1 model = torch.hub.load('pytorch/vision:v0.6.0', 'resnet18', pretrained=True).eval()
2
3 response = requests.get("https://git.io/JJkYN")
4 labels = response.text.split("\n")

8 frames
/usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
647 class HTTPDefaultErrorHandler(BaseHandler):
648 def http_error_default(self, req, fp, code, msg, hdrs):
--> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp)
650
651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 403: rate limit exceeded

@aliabid94
Copy link
Collaborator

Seems like an issue with PyTorch Hub right now. Presumably will resolve itself soon, if not, we'll load the model from another repository.

@AK391
Copy link
Contributor

AK391 commented Aug 12, 2021

@gchetty I was having a similar issue, using torch==1.8.0 resolved it, can you try that

@AK391
Copy link
Contributor

AK391 commented Aug 12, 2021

@gchetty also see pytorch/vision#4156 (comment)

@abidlabs
Copy link
Member

Closing because this is not a gradio issue. Thanks everyone for helping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants