Adapting Pre-Trained Vision Models for Novel Instance Detection and Segmentation
Yangxiao Lu, Jishnu Jaykumar P, Yunhui Guo, Nicholas Ruozzi, Yu Xiang
TL;DR
To tackle novel instance detection and segmentation (NIDS), the paper proposes NIDS-Net, which leverages Grounded-SAM to generate high-quality proposals and introduces a Weight Adapter to refine embeddings learned from a frozen DINOv2 backbone. Embeddings are formed via Foreground Feature Averaging on patch features, yielding $E_T \in \mathbb{R}^{N \times K \times C}$ for templates and $E_P \in \mathbb{R}^{Q \times C}$ for proposals, with refinement guided by an InfoNCE objective. Matching relies on cosine similarity in the adapted space, optionally augmented by an appearance score and resolved by stable matching to assign unique instance IDs, producing precise detections and segmentations. The approach achieves substantial performance gains across four detection datasets and seven BOP segmentation datasets and demonstrates real-world applicability on robotic platforms, all while avoiding end-to-end retraining of large backbones. Overall, the work shows how to effectively repurpose pre-trained vision models for NIDS via a lightweight, generalizable adapter that enhances embedding discriminability without overfitting.
Abstract
Novel Instance Detection and Segmentation (NIDS) aims at detecting and segmenting novel object instances given a few examples of each instance. We propose a unified, simple, yet effective framework (NIDS-Net) comprising object proposal generation, embedding creation for both instance templates and proposal regions, and embedding matching for instance label assignment. Leveraging recent advancements in large vision methods, we utilize Grounding DINO and Segment Anything Model (SAM) to obtain object proposals with accurate bounding boxes and masks. Central to our approach is the generation of high-quality instance embeddings. We utilized foreground feature averages of patch embeddings from the DINOv2 ViT backbone, followed by refinement through a weight adapter mechanism that we introduce. We show experimentally that our weight adapter can adjust the embeddings locally within their feature space and effectively limit overfitting in the few-shot setting. Furthermore, the weight adapter optimizes weights to enhance the distinctiveness of instance embeddings during similarity computation. This methodology enables a straightforward matching strategy that results in significant performance gains. Our framework surpasses current state-of-the-art methods, demonstrating notable improvements in four detection datasets. In the segmentation tasks on seven core datasets of the BOP challenge, our method outperforms the leading published RGB methods and remains competitive with the best RGB-D method. We have also verified our method using real-world images from a Fetch robot and a RealSense camera. Project Page: https://irvlutd.github.io/NIDSNet/
