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

Densenet pretrained model - “unexpected EOF, expected 899672 more bytes. The file might be corrupted.“) #8296

Open
JillCakmak opened this issue Mar 5, 2024 · 2 comments

Comments

@JillCakmak
Copy link

📚 The doc issue

The code found on the documentation (https://pytorch.org/hub/pytorch_vision_densenet/) to download the model gives me an error: “unexpected EOF, expected 899672 more bytes. The file might be corrupted.“

Suggest a potential alternative/fix

No response

@NicolasHug
Copy link
Member

Hi @JillCakmak . Are you referring to this line?

model = torch.hub.load('pytorch/vision:v0.10.0', 'densenet121', pretrained=True)

This one works fine for me

@JillCakmak
Copy link
Author

@NicolasHug yes that one! I do get the error still, but I just realised that the densenet169 version works. Any idea why I get the error for densenet121?

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

2 participants