facebookresearch / facebookresearch/segment-anything

Multimask output question

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

Why is num_mask_tokens = num_multimask_outputs + 1? And why is it that when you use multimask output, it slices from (1, None)?

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Trace the definitions of num_mask_tokens and multimask output in the implementation, then document why the extra token exists and why the output is sliced from (1, None).

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.