facebookresearch / facebookresearch/sam2
: Cannot find primary config
- 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
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