WeakSAM: Segment Anything Meets Weakly-supervised Instance-level Recognition

Lianghui Zhu, Junwei Zhou, Yan Liu, Xin Hao, Wenyu Liu +1 more
2/22/2024
32 citations
cs.CVcs.AI

Official code: hustvl/WeakSAM (60 stars, Python, last commit 2025-04-08).

Abstract

Weakly supervised visual recognition using inexact supervision is a critical yet challenging learning problem. It significantly reduces human labeling costs and traditionally relies on multi-instance learning and pseudo-labeling.

Show full abstract

This paper introduces WeakSAM and solves the weakly-supervised object detection (WSOD) and segmentation by utilizing the pre-learned world knowledge contained in a vision foundation model, i.e., the Segment Anything Model (SAM). WeakSAM addresses two critical limitations in traditional WSOD retraining, i.e., pseudo ground truth (PGT) incompleteness and noisy PGT instances, through adaptive PGT generation and Region of Interest (RoI) drop regularization. It also addresses the SAM's problems of requiring prompts and category unawareness for automatic object detection and segmentation. Our results indicate that WeakSAM significantly surpasses previous state-of-the-art methods in WSOD and WSIS benchmarks with large margins, i.e. average improvements of 7.4% and 8.5%, respectively. The code is available at \url{https://github.com/hustvl/WeakSAM}.

View on arXivView PDF

Code Implementations(1)

hustvl/WeakSAMOfficial100%

[ACM MM 2024] WeakSAM: Segment Anything Meets Weakly-supervised Instance-level Recognition

602Python, CudaFeb 22, 20241 years ago

Similar Papers

Cite this paper

@article{zhu2024weaksam,
  title  = {WeakSAM: Segment Anything Meets Weakly-supervised Instance-level Recognition},
  author = {Lianghui Zhu and Junwei Zhou and Yan Liu and Xin Hao and Wenyu Liu and Xinggang Wang},
  year   = {2024},
  eprint = {2402.14812},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.14812v2}
}

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/2402.14812.svg)](https://codeofpaper.com/paper/2402.14812)

Discussion