facebookresearch / facebookresearch/sam2

: Cannot find primary config

Open
#721 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

❌ 流水线初始化失败: Cannot find primary config '/models/sam2/sam2.1_hiera_t.yaml'. Check that it's in your config search path.

Config search path:
provider=hydra, path=pkg://hydra.conf
provider=main, path=pkg://sam2
provider=schema, path=structured://

code here:
checkpoint = "models/sam2/sam2.1_hiera_tiny.pt"
model_cfg = "/models/sam2/sam2.1_hiera_t.yaml"
self.predictor = SAM2ImagePredictor(build_sam2(model_cfg, checkpoint))

Contributor guide

Open the contributing guide

Research direction

Start at the shown build_sam2(model_cfg, checkpoint) call and check how the Hydra config search path resolves /models/sam2/sam2.1_hiera_t.yaml versus the pkg://sam2 provider. Done means the primary config is found and predictor initialization completes with the referenced checkpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.