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

Resnet50 is no longer 'available' through the hub.load() since the model hub revamp #646

Closed
rchevalier-brainchip opened this issue Dec 26, 2023 Discussed in #645 · 4 comments
Assignees
Labels

Comments

@rchevalier-brainchip
Copy link

Discussed in #645

Originally posted by rchevalier-brainchip December 26, 2023
Hi,

Currently, with onnx 1.15.0, using hub.load('resnet50') fails with HTTP Error 404.
Hub tries to get the model from https://media.githubusercontent.com/media/onnx/models/main/archive/vision/classification/resnet/model/resnet50-v1-7.onnx as per the manifest info.

On the contrary:
hub.load("resnet50", repo="onnx/models:5faef4c33eba0395177850e1e31c4a6a9e634c82") works fine (i.e. using the commit pre-revamp) and fetches the model from https://media.githubusercontent.com/media/onnx/models/5faef4c33eba0395177850e1e31c4a6a9e634c82/vision/classification/resnet/model/resnet50-v1-7.onnx

What is the correct way to go?

Thanks!
RC

@ramkrishna2910 ramkrishna2910 self-assigned this Dec 26, 2023
@ramkrishna2910
Copy link
Contributor

ramkrishna2910 commented Dec 26, 2023

Hi @rchevalier-brainchip
Thanks for bringing this to our attention. This issue is caused due to a folder renaming in the repo.
#647 is pending review right now and once merged will fix the above 404 issue.

@jcwchen

@rchevalier-brainchip
Copy link
Author

Thanks a lot!

@ramkrishna2910
Copy link
Contributor

#647 has merged and I can verify the following:

from onnx import hub
hub.load("resnet50")

Please close the issue if there are no further questions :)

@rchevalier-brainchip
Copy link
Author

Thanks for the quick fix :) all good on my side !

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

No branches or pull requests

2 participants