vision icon indicating copy to clipboard operation
vision copied to clipboard

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

Open JillCakmak opened this issue 1 year ago • 2 comments

📚 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

JillCakmak avatar Mar 05 '24 10:03 JillCakmak

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

NicolasHug avatar Mar 05 '24 10:03 NicolasHug

@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?

JillCakmak avatar Mar 05 '24 12:03 JillCakmak