Efficient Full Image Interactive Segmentation by Leveraging Within-image Appearance Similarity

Mykhaylo Andriluka, Stefano Pellegrini, Stefan Popov, Vittorio FerrariarXiv 2020

Abstract

We propose a new approach to interactive full-image semantic segmentation which enables quickly collecting training data for new datasets with previously unseen semantic classes. We leverage a key observation: propagation from labeled to unlabeled pixels does not necessarily require class-specific knowledge, but can be done purely based on appearance similarity within an image. We build on this observation and propose an approach capable of jointly propagating pixel labels from multiple classes without having explicit class-specific appearance models. To enable long-range propagation, our approach first globally measures appearance similarity between labeled and unlabeled pixels across the entire image. Then it locally integrates per-pixel measurements which improves the accuracy at boundaries and removes noisy label switches in homogeneous regions. We also design an efficient manual annotation interface that extends the traditional polygon drawing tools with a suite of additional convenient features. Experiments on the COCO Panoptic Challenge dataset show that our system reduces annotation time by more than factor of 2x compared to polygon drawing. We also demonstrate generalization to ADE-20k and Fashionista datasets without retraining.

Introduction

Semantic segmentation—assigning a category label to every pixel in an image—is a critical but labor-intensive task in computer vision. For instance, annotating a single image for the COCO Panoptic dataset takes an average of 19 minutes. Existing interactive tools often struggle with full-scene labeling (focusing instead on single objects) or suffer from a "cold start" problem, where they fail on classes not seen during pre-training.

This paper introduces a high-efficiency system that reduces human annotation time by over 50%. By combining a versatile manual drawing interface ("Mask Paint") with an "auto-complete" propagation engine ("Magic Paint") that leverages within-image pixel similarity, the system can label complex scenes and novel object classes without needing to be retrained for specific datasets.

Methodology

Mask Paint: The Manual Interface

Instead of relying solely on tedious polygon clicking, the authors developed a "Mask Paint" UI designed for speed and flexibility. Key features include:

  • Free-form & Line Drawing: Brush-like strokes for quick labeling.
  • Flood Fill: Rapidly filling bounded regions.
  • Freeze Foreground: A smart mode allowing users to paint "under" existing labels, eliminating the need to trace shared boundaries twice.
The Mask Paint interface featuring manual annotation tools like freeform primitives, line primitives, and the freeze foreground mode.

Magic Paint: The AI Assistant

The "Magic Paint" engine serves as an auto-complete feature. When a user draws a stroke, the system propagates that label to other similar-looking pixels in the image.

  • Embedding Network: A lightweight CNN maps every pixel to an embedding vector. It is trained to ensure that pixels belonging to the same class within the same image have similar vectors.
  • Global Propagation: The system calculates the distance between labeled and unlabeled pixels across the entire image, enabling "long-range" propagation (e.g., labeling multiple instances of the same object with one stroke).
  • Dense CRF (Conditional Random Field): To ensure labels snap to object boundaries, a Dense CRF refines global predictions using local image gradients.
Magic Paint propagation: User strokes (blue, red, green) are automatically propagated to similar pixels across the entire image.

Evaluation and Results

The system was trained on 30,000 images from COCO Panoptic and evaluated on COCO, ADE-20k, and Fashionista. To measure performance, the authors introduced a novel evaluation protocol that "replays" real human annotator strokes into a simulator.

Key results include:

  • 2x Speedup: The combined system reduced annotation time by more than 2x compared to traditional polygon drawing.
  • Efficiency Gains: On COCO, the full system reached a high-quality segmentation (0.6 IoU) 36% faster than the manual-only version.
  • Zero-Shot Generalization: The model performed remarkably well on ADE-20k and Fashionista without any dataset-specific tuning, proving that within-image similarity is a robust signal for interactive labeling.

Discussion and Insights

A core insight of this work is that appearance similarity is universal. A model does not need to know what a "fireplace" is to help segment it; it only needs to recognize that certain pixels look like those the human just labeled. This allows the tool to work on novel classes out of the box. Furthermore, quantitative results showed that nearly half of the speedup came from the improved manual drawing tools (Mask Paint), highlighting the importance of UI design.

While highly effective, the system currently requires an initial "seed" stroke from a human and relies on a lightweight embedding network to maintain real-time interactivity. Future work could explore more powerful architectures or methods for the AI to suggest labels autonomously.

Summary updated

BibTeX
@misc{andriluka2020efficient,
  author = {Mykhaylo Andriluka and Stefano Pellegrini and Stefan Popov and Vittorio Ferrari},
  title = {{Efficient Full Image Interactive Segmentation by Leveraging Within-image Appearance Similarity}},
  year = {2020},
  eprint = {2007.08173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.08173},
}
Figure