GraCo: Granularity-Controllable Interactive Segmentation

CVPR 2024 Highlight
Yian Zhao1,3, Kehan Li1,3, Zesen Cheng1,3, Pengchong Qiao1,2,3, Xiawu Zheng4, Rongrong Ji4, Chang Liu5 Li Yuan1,2,3 Jie Chen1,2,3*
1School of ECE, Peking University 2Peng Cheng Laboratory 3AI for Science (AI4S)-Preferred Program, Peking University 4Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Xiamen University 5Department of Automation and BNRist, Tsinghua University

Abstract

Interpolate motivation image.

Interactive Segmentation (IS) segments specific objects or parts in the image according to user input. Current IS pipelines fall into two categories: single-granularity output and multi-granularity output. The latter aims to alleviate the spatial ambiguity present in the former. However, the multi-granularity output pipeline suffers from limited interaction flexibility and produces redundant results.

In this work, we introduce Granularity-Controllable Interactive Segmentation (GraCo), a novel approach that allows precise control of prediction granularity by introducing additional parameters to input. This enhances the customization of the interactive system and eliminates redundancy while resolving ambiguity. Nevertheless, the exorbitant cost of annotating multi-granularity masks and the lack of available datasets with granularity annotations make it difficult for models to acquire the necessary guidance to control output granularity.

To address this problem, we design an any-granularity mask generator that exploits the semantic property of the pre-trained IS model to automatically generate abundant mask-granularity pairs without requiring additional manual annotation. Based on these pairs, we propose a granularity-controllable learning strategy that efficiently imparts the granularity controllability to the IS model. Extensive experiments on intricate scenarios at object and part levels demonstrate that our GraCo has significant advantages over previous methods. This highlights the potential of GraCo to be a flexible annotation tool, capable of adapting to diverse segmentation scenarios.


Method

Interpolate overview image.

Our GraCo consists of two stages. For the first stage, the Any-Granularity mask Generator (AGG) is designed to automatically generate any-granularity proposals (mask engine) and granularity annotations (granularity estimator) based on the object GT, without requiring additional manual annotation. For the second stage, the mask-granularity pairs generated by AGG are utilized to perform Granularity-Controllable Learning (GCL) on the object-level pre-trained IS model, enabling the model to efficiently possesses granularity controllability.

Interpolate loop image.

The multi-granularity loop simulation and visualization of the mask proposals generated by AGG.


Video


Qualitative Results

Part-level

Interpolate part_level image.

Object-level

Interpolate object_level image.