IMProv: Inpainting-based Multimodal Prompting for Computer Vision Tasks

Jiarui Xu, Yossi Gandelsman, Amir Bar, Jianwei Yang, Jianfeng Gao +2 more
12/4/2023
cs.CV

No official code found. Best implementation: xvjiarui/IMProv (57 stars, last commit 2024-09-26).

Abstract

In-context learning allows adapting a model to new tasks given a task description at test time. In this paper, we present IMProv - a generative model that is able to in-context learn visual tasks from multimodal prompts. Given a textual description of a visual task (e.g. "Left: input image, Right: foreground segmentation"), a few input-output visual examples, or both, the model in-context learns to solve it for a new test input. We train a masked generative transformer on a new dataset of figures from computer vision papers and their associated captions, together with a captioned large-scale image-text dataset. During inference time, we prompt the model with text and/or image task example(s) and have the model inpaint the corresponding output. We show that training our model with text conditioning and scaling the dataset size improves in-context learning for computer vision tasks by over +10\% AP for Foreground Segmentation, over +5\% gains in AP for Single Object Detection, and almost 20\% lower LPIPS in Colorization. Our empirical results suggest that vision and language prompts are complementary and it is advantageous to use both to achieve better in-context learning performance. Project page is available at https://jerryxu.net/IMProv .

View on arXivView PDF

Code Implementations(1)

xvjiarui/IMProvCommunity65%

IMProv: Inpainting-based Multimodal Prompting for Computer Vision Tasks

575Python2 years ago

Similar Papers

Cite this paper

@article{xu2023improv,
  title  = {IMProv: Inpainting-based Multimodal Prompting for Computer Vision Tasks},
  author = {Jiarui Xu and Yossi Gandelsman and Amir Bar and Jianwei Yang and Jianfeng Gao and Trevor Darrell and Xiaolong Wang},
  year   = {2023},
  eprint = {2312.01771},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.01771v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.01771.svg)](https://codeofpaper.com/paper/2312.01771)

Discussion