Semantic-SAM: Segment and Recognize Anything at Any Granularity
About
In this paper, we introduce Semantic-SAM, a universal image segmentation model to enable segment and recognize anything at any desired granularity. Our model offers two key advantages: semantic-awareness and granularity-abundance. To achieve semantic-awareness, we consolidate multiple datasets across three granularities and introduce decoupled classification for objects and parts. This allows our model to capture rich semantic information. For the multi-granularity capability, we propose a multi-choice learning scheme during training, enabling each click to generate masks at multiple levels that correspond to multiple ground-truth masks. Notably, this work represents the first attempt to jointly train a model on SA-1B, generic, and part segmentation datasets. Experimental results and visualizations demonstrate that our model successfully achieves semantic-awareness and granularity-abundance. Furthermore, combining SA-1B training with other segmentation tasks, such as panoptic and part segmentation, leads to performance improvements. We will provide code and a demo for further exploration and evaluation.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Instance Segmentation | COCO (val) | APmk46.1 | 485 | |
| Open-Vocabulary Part Segmentation | PARS Ad-hoc Concepts | gIoU44.5 | 28 | |
| Open-Vocabulary Part Segmentation | PARS Common Concepts | gIoU51.7 | 14 | |
| Leaf Instance Segmentation | Forestry and Agricultural Scenes Scenario F1 | Manual Visual Inspection Accuracy86.3 | 4 | |
| Leaf Instance Segmentation | Forestry and Agricultural Scenes Scenario F3 (F3-Acc) | Manual Inspection Accuracy56.3 | 4 | |
| Leaf Instance Segmentation | Forestry and Agricultural Scenes Scenario F4 (Acc) | Accuracy87.5 | 4 | |
| Leaf Instance Segmentation | Forestry and Agricultural Scenes Scenario F2 (Acc) | Accuracy (Manual Inspection)67.3 | 4 | |
| Leaf Instance Segmentation | Forestry and Agricultural Scenes Scenario F5 (Acc) | Accuracy (Manual Inspection)71 | 3 |