facebookresearch / facebookresearch/segment-anything
How to give box as a input prompt to SAM
- Dominant language
- Jupyter Notebook
- Stars
- 54.9k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Description
I am using the demo provided by segment-anything and they have given example of points prompts only My requirement is to give box coordinates and get all the shapes lai inside that box

in the screenshot, they have provided clicks info and I want to provide box coordinates instead of clicks.
any help will be really appreciated
Contributor guide
Research direction
Start with the Segment Anything demo example mentioned in the issue and inspect how point prompts are passed to SAM. Determine how box coordinates can be supplied instead, then run the example with a box and verify that the shapes inside it are returned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- computer-vision, machine-learning
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100