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

Images Speak in Images: A Generalist Painter for In-Context Visual Learning

About

In-context learning, as a new paradigm in NLP, allows the model to rapidly adapt to various tasks with only a handful of prompts and examples. But in computer vision, the difficulties for in-context learning lie in that tasks vary significantly in the output representations, thus it is unclear how to define the general-purpose task prompts that the vision model can understand and transfer to out-of-domain tasks. In this work, we present Painter, a generalist model which addresses these obstacles with an "image"-centric solution, that is, to redefine the output of core vision tasks as images, and specify task prompts as also images. With this idea, our training process is extremely simple, which performs standard masked image modeling on the stitch of input and output image pairs. This makes the model capable of performing tasks conditioned on visible image patches. Thus, during inference, we can adopt a pair of input and output images from the same task as the input condition, to indicate which task to perform. Without bells and whistles, our generalist Painter can achieve competitive performance compared to well-established task-specific models, on seven representative vision tasks ranging from high-level visual understanding to low-level image processing. In addition, Painter significantly outperforms recent generalist models on several challenging tasks.

Xinlong Wang, Wen Wang, Yue Cao, Chunhua Shen, Tiejun Huang• 2022

Related benchmarks

TaskDatasetResultRank
Video Object SegmentationDAVIS 2017 (val)
J mean28.5
1130
Semantic segmentationADE20K
mIoU49.9
936
Video Object SegmentationDAVIS 2016 (val)
J Mean69.6
564
Few-shot SegmentationPASCAL-5i--
325
Salient Object DetectionDUTS (test)
M (MAE)0.113
302
Depth EstimationNYU Depth V2
RMSE0.288
177
Panoptic SegmentationCOCO 2017 (val)
PQ43.4
172
Semantic segmentationPASCAL-5i
Mean mIoU64.6
111
Image DenoisingSIDD
PSNR38.88
95
Few-shot Semantic SegmentationCOCO-20i (test)--
79
Showing 10 of 100 rows
...

Other info

Code

Follow for update