Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Visual In-Context Prompting

About

In-context prompting in large language models (LLMs) has become a prevalent approach to improve zero-shot capabilities, but this idea is less explored in the vision domain. Existing visual prompting methods focus on referring segmentation to segment the most relevant object, falling short of addressing many generic vision tasks like open-set segmentation and detection. In this paper, we introduce a universal visual in-context prompting framework for both tasks. In particular, we build on top of an encoder-decoder architecture, and develop a versatile prompt encoder to support a variety of prompts like strokes, boxes, and points. We further enhance it to take an arbitrary number of reference image segments as the context. Our extensive explorations show that the proposed visual in-context prompting elicits extraordinary referring and generic segmentation capabilities to refer and detect, yielding competitive performance to close-set in-domain datasets and showing promising results on many open-set segmentation datasets. By joint training on COCO and SA-1B, our model achieves $57.7$ PQ on COCO and $23.2$ PQ on ADE20K. Code will be available at https://github.com/UX-Decoder/DINOv.

Feng Li, Qing Jiang, Hao Zhang, Tianhe Ren, Shilong Liu, Xueyan Zou, Huaizhe Xu, Hongyang Li, Chunyuan Li, Jianwei Yang, Lei Zhang, Jianfeng Gao• 2023

Related benchmarks

TaskDatasetResultRank
Video Object SegmentationDAVIS 2017 (val)
J mean71
1130
Object DetectionODinW-13
AP27.8
98
Object DetectionCOCO
AP (bbox)15.7
59
Video Object SegmentationYouTube-VOS 2018
Score G60.9
47
SegmentationCOCO in-domain
PQ57.7
18
Object DetectionODinW 35 datasets (test)
Average AP15.7
15
Video Object SegmentationDAVIS Interactive 16
JF Score77
14
SegmentationADE (out-domain)
PQ23.2
10
SegmentationSegInW (out-domain)
AP (Average)40.6
7
Showing 9 of 9 rows

Other info

Code

Follow for update