Skip to content

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

@sigi-tw

Description

@sigi-tw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions