mseitzer / pytorch-fid

Compute FID scores with PyTorch.
Apache License 2.0
3.22k stars 497 forks source link

Error while loading weights from url #99

Closed lthilnklover closed 5 months ago

lthilnklover commented 10 months ago

Hi, I'm currently using pytorch-fid to evaluate the generative models. However, from time to time, I got the following error:

RuntimeError: storage has wrong byte size: expected %ld got %ld0768

while loading weights from url. If I try to download the file directly from the FID_WEIGHTS_URL, it works. So I don't think the link itself is the problem. Did anybody face the similar issue?

mseitzer commented 5 months ago

This sounds like a corrupted download of the checkpoint file. Delete the checkpoint and try again.