CLIP icon indicating copy to clipboard operation
CLIP copied to clipboard

Model has been downloaded but the SHA256 checksum does not not match

Open trltzy opened this issue 2 years ago • 4 comments

trltzy avatar Mar 26 '23 08:03 trltzy

This error happens when the downloaded model has been corrupted for some reason.

Here is the place where the error occurs: https://github.com/openai/CLIP/blob/a9b1bf5920416aaeaec965c25dd9e8f98c864f16/clip/clip.py#L70

Here are the links for the models:

https://github.com/openai/CLIP/blob/a9b1bf5920416aaeaec965c25dd9e8f98c864f16/clip/clip.py#L30

You can check whether the downloaded model is correct by running sha256sum and comparing it to the corresponding value from the clip.py file, e.g. sha256sum ~/.cache/clip/ViT-B-32.pt should be 40d365715913c9da98579312b702a82c18be219cc2a73407c4526f58eba950af.

99991 avatar Mar 30 '23 10:03 99991

For me, it's happening because the download is getting aborted prematurely.

jaded0 avatar Jun 05 '23 07:06 jaded0

For me, it's happening because the download is getting aborted prematurely.

If that issue persists, you could try downloading the files with a different program which supports resuming of downloads and placing the downloaded file in the directory ~/.cache/clip/.

Here you can find the download links to the individual models:

https://github.com/openai/CLIP/blob/a9b1bf5920416aaeaec965c25dd9e8f98c864f16/clip/clip.py#L30-L40

99991 avatar Jun 05 '23 07:06 99991

I'm having same issue with wishper

olawalejuwonm avatar Jan 17 '24 02:01 olawalejuwonm