pytorch / vision

Datasets, Transforms and Models specific to Computer Vision
https://pytorch.org/vision
BSD 3-Clause "New" or "Revised" License
16.06k stars 6.93k forks source link

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

Open JillCakmak opened 7 months ago

JillCakmak commented 7 months ago

📚 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 commented 7 months ago

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 commented 7 months ago

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