Tokenize Anything via Prompting

Ting Pan, Lulu Tang, Xinlong Wang, Shiguang Shan
12/14/2023
cs.CV

Official code: baaivision/tokenize-anything (600 stars, Apache-2.0, last commit 2024-12-11).

Abstract

We present a unified, promptable model capable of simultaneously segmenting, recognizing, and captioning anything. Unlike SAM, we aim to build a versatile region representation in the wild via visual prompting. To achieve this, we train a generalizable model with massive segmentation masks, \eg, SA-1B masks, and semantic priors from a pre-trained CLIP model with 5 billion parameters. Specifically, we construct a promptable image decoder by adding a semantic token to each mask token. The semantic token is responsible for learning the semantic priors in a predefined concept space. Through joint optimization of segmentation on mask tokens and concept prediction on semantic tokens, our model exhibits strong regional recognition and localization capabilities. For example, an additional 38M-parameter causal text decoder trained from scratch sets a new record with a CIDEr score of 164.7 on the Visual Genome region captioning task. We believe this model can be a versatile region-level image tokenizer, capable of encoding general-purpose region context for a broad range of visual perception tasks. Code and models are available at {\footnotesize \url{https://github.com/baaivision/tokenize-anything}}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ECCV 2024] Tokenize Anything via Prompting

60027Python, Jupyter Notebook1 years agoApache-2.0
foundation-modelsmultimodalpromptablerepresentation-learning

Similar Papers

Cite this paper

@article{pan2023tokenize,
  title  = {Tokenize Anything via Prompting},
  author = {Ting Pan and Lulu Tang and Xinlong Wang and Shiguang Shan},
  year   = {2023},
  eprint = {2312.09128},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.09128v2}
}

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.09128.svg)](https://codeofpaper.com/paper/2312.09128)

Discussion