Segment Anything without Supervision

XuDong Wang, Jingfeng Yang, Trevor Darrell
6/28/2024
cs.CVcs.LG

No official code found. Best implementation: frank-xwang/UnSAM (502 stars, last commit 2025-11-20).

Abstract

The Segmentation Anything Model (SAM) requires labor-intensive data labeling. We present Unsupervised SAM (UnSAM) for promptable and automatic whole-image segmentation that does not require human annotations. UnSAM utilizes a divide-and-conquer strategy to "discover" the hierarchical structure of visual scenes. We first leverage top-down clustering methods to partition an unlabeled image into instance/semantic level segments. For all pixels within a segment, a bottom-up clustering method is employed to iteratively merge them into larger groups, thereby forming a hierarchical structure. These unsupervised multi-granular masks are then utilized to supervise model training. Evaluated across seven popular datasets, UnSAM achieves competitive results with the supervised counterpart SAM, and surpasses the previous state-of-the-art in unsupervised segmentation by 11% in terms of AR. Moreover, we show that supervised SAM can also benefit from our self-supervised labels. By integrating our unsupervised pseudo masks into SA-1B's ground-truth masks and training UnSAM with only 1% of SA-1B, a lightly semi-supervised UnSAM can often segment entities overlooked by supervised SAM, exceeding SAM's AR by over 6.7% and AP by 3.9% on SA-1B.

View on arXivView PDF

Code Implementations(1)

frank-xwang/UnSAMCommunity100%

[NeurIPS 2024] Code release for "Segment Anything without Supervision"

50227C++, CudaJun 28, 202411 months ago

Similar Papers

Cite this paper

@article{wang2024segment,
  title  = {Segment Anything without Supervision},
  author = {XuDong Wang and Jingfeng Yang and Trevor Darrell},
  year   = {2024},
  eprint = {2406.20081},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.20081},
  url    = {http://arxiv.org/abs/2406.20081v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.20081.svg)](https://codeofpaper.com/paper/2406.20081)

Discussion