facebookresearch / facebookresearch/segment-anything
error occurs in python scritps
- Dominant language
- Jupyter Notebook
- Stars
- 54.9k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Description
1st :masks,_, _ = predictor.predict('bed')
AssertionError: point_labels must be supplied if point_coords is supplied.
2ed: from segment_anything import build_sam, SamAutomaticMaskGenerator
mask_generator = SamAutomaticMaskGenerator(build_sam(checkpoint=pth_path))
masks = mask_generator_generate(img)
NameError: name 'mask_generator_generate' is not defined
how to deal with that ques?
Contributor guide
Research direction
Start by reproducing the two reported calls: predictor.predict('bed') and SamAutomaticMaskGenerator(build_sam(checkpoint=pth_path)). Compare them with the repository's example notebooks and documented API usage. Done means identifying whether both exceptions come from incorrect caller syntax or an API mismatch and recording a reproducible resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100