computational-cell-analytics / micro-sam

Segment Anything for Microscopy
https://computational-cell-analytics.github.io/micro-sam/
MIT License
311 stars 35 forks source link

Downloading models not working #618

Closed anwai98 closed 1 month ago

anwai98 commented 1 month ago

@constantinpape Downloading models from bioimage.io seems to be having some issues (reference: https://forum.image.sc/t/micro-sam-issues-in-napari-http/96750)

I tried to reproduce it, and seems to be the case for me as well. Looks like the server cannot be reached at the moment.

To reproduce:

$ wget https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/idealistic-rat/staged/1/files/vit_l_decoder.pt
--2024-05-24 08:39:57--  https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/idealistic-rat/staged/1/files/vit_l_decoder.pt
Resolving uk1s3.embassy.ebi.ac.uk (uk1s3.embassy.ebi.ac.uk)... 193.62.54.231
Connecting to uk1s3.embassy.ebi.ac.uk (uk1s3.embassy.ebi.ac.uk)|193.62.54.231|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-05-24 08:39:57 ERROR 404: Not Found.
oeway commented 1 month ago

Hi I see, the model is already published, so you can access it via https://uk1s3.embassy.ebi.ac.uk/public-datasets/bioimage.io/idealistic-rat/1/files/vit_l_decoder.pt instead. Note that the previous link contains staged which means it's not a published model, so the URL is not guaranteed to be available.

constantinpape commented 1 month ago

I have updated the URLs and am publishing a patch release to fix the issue.

constantinpape commented 1 month ago

The releases 1.0.1 is available on conda now and the installers are also updated. This should fix the issue overall.