Adapting CLIP For Phrase Localization Without Further Training

Jiahao Li, Greg Shakhnarovich, Raymond A. Yeh
4/7/2022
cs.CVcs.AI

Official code: pals-ttic/adapting-CLIP (66 stars, Python, MIT, last commit 2023-10-11).

Abstract

Supervised or weakly supervised methods for phrase localization (textual grounding) either rely on human annotations or some other supervised models, e.g., object detectors. Obtaining these annotations is labor-intensive and may be difficult to scale in practice.

Show full abstract

We propose to leverage recent advances in contrastive language-vision models, CLIP, pre-trained on image and caption pairs collected from the internet. In its original form, CLIP only outputs an image-level embedding without any spatial resolution. We adapt CLIP to generate high-resolution spatial feature maps. Importantly, we can extract feature maps from both ViT and ResNet CLIP model while maintaining the semantic properties of an image embedding. This provides a natural framework for phrase localization. Our method for phrase localization requires no human annotations or additional training. Extensive experiments show that our method outperforms existing no-training methods in zero-shot phrase localization, and in some cases, it even outperforms supervised methods. Code is available at https://github.com/pals-ttic/adapting-CLIP .

View on arXivView PDF

Code Implementations(1)

MIT
6610PythonApr 4, 20223 years agoMIT

Similar Papers

Cite this paper

@article{li2022adapting,
  title  = {Adapting CLIP For Phrase Localization Without Further Training},
  author = {Jiahao Li and Greg Shakhnarovich and Raymond A. Yeh},
  year   = {2022},
  eprint = {2204.03647},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.03647}
}

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

Discussion