ViTOL: Vision Transformer for Weakly Supervised Object Localization

Saurav Gupta, Sourav Lakhotia, Abhay Rawat, Rahul Tallamraju
4/14/2022
cs.CV
transformer-attention

Official code: Saurav-31/ViTOL (32 stars, Python, MIT, PyTorch, last commit 2022-06-28).

Abstract

Weakly supervised object localization (WSOL) aims at predicting object locations in an image using only image-level category labels. Common challenges that image classification models encounter when localizing objects are, (a) they tend to look at the most discriminative features in an image that confines the localization map to a very small region, (b) the localization maps are class agnostic, and the models highlight objects of multiple classes in the same image and, (c) the localization performance is affected by background noise.

Show full abstract

To alleviate the above challenges we introduce the following simple changes through our proposed method ViTOL. We leverage the vision-based transformer for self-attention and introduce a patch-based attention dropout layer (p-ADL) to increase the coverage of the localization map and a gradient attention rollout mechanism to generate class-dependent attention maps. We conduct extensive quantitative, qualitative and ablation experiments on the ImageNet-1K and CUB datasets. We achieve state-of-the-art MaxBoxAcc-V2 localization scores of 70.47% and 73.17% on the two datasets respectively. Code is available on https://github.com/Saurav-31/ViTOL

View on arXivView PDF

Code Implementations(1)

Saurav-31/ViTOLOfficial100%
PyTorchMIT

ViTOL

326Python, ShellApr 13, 20224 years agoMIT
cvpr-2022l3divupytorch

Similar Papers

Cite this paper

@article{gupta2022vitol,
  title  = {ViTOL: Vision Transformer for Weakly Supervised Object Localization},
  author = {Saurav Gupta and Sourav Lakhotia and Abhay Rawat and Rahul Tallamraju},
  year   = {2022},
  eprint = {2204.06772},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.06772}
}

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

Discussion