Closed miquelmassot closed 2 years ago
@miquelmassot thanks for reporting the issue. fyi, I'm using the pooch library to retrieve the model weights
file from a Zenodo repository. Pooch is a very handy library to download data in cache.
Not sure what's wrong. May I ask your OS? Also can you try to run the following lines in your local environment? I would suggest to create a virtual environmental and install pooch
via pip.
model_weights = dict(url="doi:10.5281/zenodo.6143685/cop-non-detritus-20211215.pth", known_hash="md5:46fd1665c8b966e472152eb695d22ae3")
model = pooch.retrieve(url=model_weights['url'], known_hash=model_weights['known_hash'])
It should return a message like Downloading data from 'doi:10.5281/zenodo.6143685/cop-non-detritus-20211215.pth' to file
ps. I double checked the Binder of the Plankton use case, and I don't have any error.
Issue fixed itself, probably issues with Zenodo file serving.
When trying to run the notebook https://github.com/scivision-gallery/plankton-classification locally, it got stuck on this line for >5h. I ended up killing the process. https://github.com/alan-turing-institute/plankton-cefas-scivision/blob/main/resnet50_cefas/model.py#L22
Full traceback below