facebookresearch / facebookresearch/segment-anything

How to give box as a input prompt to SAM

Open
#469 2 comments 0 reactions 0 assignees View on GitHub
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

![image](https://github.com/facebookresearch/segment-anything/assets/28887343/a20026ab-52e1-4631-aa9a-38bb6521ac94)
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.