One-shot In-context Part Segmentation
Zhenqi Dai, Ting Liu, Xingxing Zhang, Yunchao Wei, Yanning Zhang
TL;DR
This paper addresses the challenge of part segmentation with minimal supervision by proposing OIParts, a training-free framework that leverages the complementary strengths of Visual Foundation Models, specifically DINOv2 for dense local descriptors and Stable Diffusion for global structure. By performing adaptive channel selection to minimize intra-class distance, OIParts creates discriminative, part-specific representations from a single in-context example, enabling accurate pixel-wise segmentation of novel objects under varied appearance, pose, and occlusion. Extensive experiments on PASCAL-Part and CelebAMask-HQ demonstrate that OIParts outperforms existing one-shot methods and rivals some ten-shot or supervised baselines, with notable improvements in challenging settings such as pose variation and partial visibility. The approach avoids labeled data and training, preserving generalization while delivering data-efficient, flexible segmentation via a simple but effective fusion of VFMs and a principled channel selection strategy. Overall, OIParts offers a practical, scalable solution for fine-grained part segmentation in diverse domains, highlighting the potential of training-free in-context methods for downstream vision tasks.
Abstract
In this paper, we present the One-shot In-context Part Segmentation (OIParts) framework, designed to tackle the challenges of part segmentation by leveraging visual foundation models (VFMs). Existing training-based one-shot part segmentation methods that utilize VFMs encounter difficulties when faced with scenarios where the one-shot image and test image exhibit significant variance in appearance and perspective, or when the object in the test image is partially visible. We argue that training on the one-shot example often leads to overfitting, thereby compromising the model's generalization capability. Our framework offers a novel approach to part segmentation that is training-free, flexible, and data-efficient, requiring only a single in-context example for precise segmentation with superior generalization ability. By thoroughly exploring the complementary strengths of VFMs, specifically DINOv2 and Stable Diffusion, we introduce an adaptive channel selection approach by minimizing the intra-class distance for better exploiting these two features, thereby enhancing the discriminatory power of the extracted features for the fine-grained parts. We have achieved remarkable segmentation performance across diverse object categories. The OIParts framework not only eliminates the need for extensive labeled data but also demonstrates superior generalization ability. Through comprehensive experimentation on three benchmark datasets, we have demonstrated the superiority of our proposed method over existing part segmentation approaches in one-shot settings.
