Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAM2 updated upstream to 2.1 which breaks the SAM2 docker build #659

Open
sigi-tw opened this issue Nov 3, 2024 · 2 comments
Open

SAM2 updated upstream to 2.1 which breaks the SAM2 docker build #659

sigi-tw opened this issue Nov 3, 2024 · 2 comments

Comments

@sigi-tw
Copy link

sigi-tw commented Nov 3, 2024

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

@makseq
Copy link
Member

makseq commented Nov 5, 2024

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

@makseq
Copy link
Member

makseq commented Nov 5, 2024

Probably, this PR is related: https://github.com/HumanSignal/label-studio-ml-backend/pull/651/files

@micaelakaplan micaelakaplan mentioned this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants