sacdallago / bio_embeddings

Get protein embeddings from protein sequences
http://docs.bioembeddings.com
MIT License
461 stars 65 forks source link

How to reset a corrupted model download? #182

Closed ms337 closed 2 years ago

ms337 commented 2 years ago

Tried to use the ESM1-b embedder. When init for the first time, ran out of space on disk. So the download was incomplete. Now when I try to run the script again, the module tries to use the corrupted downloaded file:

Python Error: RuntimeError: unexpected EOF, expected 3194894 more bytes. The file might be corrupted.

Is there a force_download=True argument? Or is there anyway to delete the downloaded model manually and reinit?

Thanks!

konstin commented 2 years ago

You can delete the esm1b folder in ~/.cache/bio_embeddings, then it should do the download again

ms337 commented 2 years ago

Dont have a .cache directory in my home directory