HumanSignal/label-studio-ml-backend

SAM2 updated upstream to 2.1 which breaks the SAM2 docker build

Opened this issue · 2 comments

Hi,

SAM2 was upgraded to model 2.1. The Download script for checkpoints downloads now by default the 2.1 version.

To fix it, i had to comment in the old 2.0 models (as i tried it manually after issues with the docker version).

The docker build works, but when starting the docker image through docker compose, the following error message happens:

FileNotFoundError: [Errno 2] No such file or directory: '/segment-anything-2/checkpoints/sam2_hiera_large.pt'

You can see the new checkpoint download script with commented out 2.0 models here: https://github.com/facebookresearch/sam2/blob/main/checkpoints/download_ckpts.sh

Thank you for letting us know! We will prepare a fix for this soon.