facebookresearch / facebookresearch/segment-anything
"show_box()" needs to be changed in "predictor_example.ipynb"
Open
- Dominant language
- Jupyter Notebook
- Stars
- 54.9k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
As I looked through the codes, the annotation "bbox" attribute is in the form of (x, y, h, w). However, in the example notebook, the function "show_box()" decodes the bounding box assuming it is in the form of (x0, y0, x1, y1). I believe it should be changed according to the correct format of "bbox".
Contributor guide
Research direction
Open predictor_example.ipynb and inspect show_box() alongside the annotation bbox convention stated in the issue. Update the visualization to handle the documented (x, y, h, w) format, then run the notebook on an example and confirm the displayed box matches the annotation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100