Superpixel Anything: A general object-based framework for accurate yet regular superpixel segmentation

Julien Walther, Rémi Giraud, Michaël Clément
9/16/2025
cs.CV

Official code: waldo-j/spam (38 stars, last commit 2025-09-29).

Abstract

Superpixels are widely used in computer vision to simplify image representation and reduce computational complexity. While traditional methods rely on low-level features, deep learning-based approaches leverage high-level features but also tend to sacrifice regularity of superpixels to capture complex objects, leading to accurate but less interpretable segmentations. In this work, we introduce SPAM (SuperPixel Anything Model), a versatile framework for segmenting images into accurate yet regular superpixels. We train a model to extract image features for superpixel generation, and at inference, we leverage a large-scale pretrained model for semantic-agnostic segmentation to ensure that superpixels align with object masks. SPAM can handle any prior high-level segmentation, resolving uncertainty regions, and is able to interactively focus on specific objects. Comprehensive experiments demonstrate that SPAM qualitatively and quantitatively outperforms state-of-the-art methods on segmentation tasks, making it a valuable and robust tool for various applications. Code and pre-trained models are available here: https://github.com/waldo-j/spam.

View on arXivView PDF

Code Implementations(1)

waldo-j/spamOfficial100%
384Cuda, CythonAug 27, 20251 years ago

Similar Papers

Cite this paper

@article{walther2025superpixel,
  title  = {Superpixel Anything: A general object-based framework for accurate yet regular superpixel segmentation},
  author = {Julien Walther and Rémi Giraud and Michaël Clément},
  year   = {2025},
  eprint = {2509.12791},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.12791v1}
}

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

Discussion