facebookresearch / facebookresearch/segment-anything

shift to the center of pixel?

Open
#332 1 comment 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'm confused that since the boxes is not normalized yet,why add 0.5?
[https://github.com/facebookresearch/segment-anything/blob/6fdee8f2727f4506cfbbe553e23b895e27956588/segment_anything/modeling/prompt_encoder.py#LL95C18-L95C18](url)
So do the point prompt.
I'll be appreciated if you could help me.

Contributor guide

Open the contributing guide

Research direction

Start in segment_anything/modeling/prompt_encoder.py at the linked line and inspect the box and point prompt coordinate transformations. Compare the 0.5 offset with the model's coordinate convention and related code, then confirm the intended behavior with the maintainer; the issue does not specify a concrete code change or test for completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.