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

Update timm torchvision resnet weight urls to the updated urls in torchvision #2346

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

JohannesTheo
Copy link
Contributor

This fix updates the weight urls of timm to be in sync again with torchvision resnet*.IMAGENET1K_V1 models.

During my work, I found that resnet weight urls in timm and torchvision are different and was wondering why.

A quick search revealed that models have been re-uploaded with new serialization in 2020 (see pytorch/vision#2068 ). The new files have a different hash and hence, a different url. This PR updates the urls in timm to the updated urls in torchvision:

Note that the old urls are still online for BC.

In summary, it's probably not super important to change urls but at the same time, why not fix it :)

@JohannesTheo JohannesTheo changed the title Update timm torchvision resnet weight urls to the upadted urls in torchvision Update timm torchvision resnet weight urls to the updated urls in torchvision Nov 26, 2024
@rwightman
Copy link
Collaborator

thanks, never noticed they changed those, though the safetensors weights from huggingface hub are used by default now.

@rwightman rwightman merged commit 444c506 into huggingface:main Nov 26, 2024
22 checks passed
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

Successfully merging this pull request may close these issues.

3 participants