bowang-lab / MedSAMSlicer

3D Slicer Plugin for Segment anything in medical images
https://www.nature.com/articles/s41467-024-44824-z
148 stars 18 forks source link

issue with checkpoint download #36

Closed mehrnia closed 4 weeks ago

mehrnia commented 1 month ago

https://dl.fbaipublicfiles.com/segment_anything_2/072824/

actually when I run ./download_ckpts.sh, nothing happens image Capture

rasakereh commented 4 weeks ago

It seems that you are using powershell while this is a bash script. You can download the file found here to the same directory and use the following command: powershell -ExecutionPolicy Bypass -File .\download_checkpoints.ps1

I noticed that powershell download can sometimes be slow. So you can alternatively download your desired checkpoints manually using the following urls: https://dl.fbaipublicfiles.com/segment_anything_2/072824/sam2_hiera_tiny.pt https://dl.fbaipublicfiles.com/segment_anything_2/072824/sam2_hiera_small.pt https://dl.fbaipublicfiles.com/segment_anything_2/072824/sam2_hiera_base_plus.pt https://dl.fbaipublicfiles.com/segment_anything_2/072824/sam2_hiera_large.pt

The first one is usually enough.

mehrnia commented 4 weeks ago

Thank you I actually I did it.