Skip to content

Conversation

@JuanFKurucz
Copy link
Contributor

What does this PR do?

The link https://huggingface.co/microsoft/swinv2_tiny_patch4_windows8_256/ redirects to a 404. The actual link is https://huggingface.co/microsoft/swinv2-tiny-patch4-window8-256.

At the same time, loading the configuration using

from transformers import AutoConfig
config = AutoConfig.from_pretrained("microsoft/swinv2_tiny_patch4_windows8_256")

Returns

HTTPError: 401 Client Error: Unauthorized for url: 
https://huggingface.co/microsoft/swinv2_tiny_patch4_windows8_256/resolve/main/config.json

As the link is not valid, this change fixes it.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 2, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks for catching this and fixing!

@sgugger sgugger merged commit d5af5a0 into huggingface:main Dec 5, 2022
mpierrau pushed a commit to mpierrau/transformers that referenced this pull request Dec 15, 2022
@JuanFKurucz JuanFKurucz deleted the fix_swinv2_model_link branch August 8, 2023 15:39
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