facebookresearch / facebookresearch/segment-anything

Multi-objects' masks from SAM predictor

Open
#463 4 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

Thanks for the wonderful work. I have a question, apologies if I have missed the information.

As I understand, SAM is class-agnostic. Is it correct to assume that SAM does not support multi-object segmentation, but rather binary segmentation and the "different" masks generated by the SAM predictor for different objects (I am not talking about the multi-masks for confidence scores) in an image are essentially generated sequentially? In other words, does the SAM predictor loop over the different objects' prompts (such as point prompts, bbox prompts, etc.), treating each one as a separate entity, and generate a binary mask (foreground vs. background) for each of these objects individually?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.