facebookresearch / facebookresearch/segment-anything

show_anns function with unused variables

Open
#267 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

In the example [notebook ](https://github.com/facebookresearch/segment-anything/blob/main/notebooks/automatic_mask_generator_example.ipynb), in the `show_anns` function defination there are the variables 'polygons' and 'color' that assign as empty lists. They aren't applies or used in the function.
Why they are exist? It's maiking me think I'm forgetting something to apply in my code.

Contributor guide

Open the contributing guide

Research direction

Open notebooks/automatic_mask_generator_example.ipynb and inspect the show_anns function, focusing on the polygons and color variables mentioned in the issue. Confirm whether they are referenced elsewhere in the function; done means the example no longer contains misleading unused variables or clearly explains their purpose.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.