You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection

Yuxin Fang, Bencheng Liao, Xinggang Wang, Jiemin Fang, Jiyang Qi +3 more
6/1/2021
444 citations
cs.CVcs.AIcs.LG
transformer-attention

Official code: hustvl/YOLOS (901 stars, Jupyter Notebook, MIT, last commit 2022-05-04).

Abstract

Can Transformer perform 2D object- and region-level recognition from a pure sequence-to-sequence perspective with minimal knowledge about the 2D spatial structure? To answer this question, we present You Only Look at One Sequence (YOLOS), a series of object detection models based on the vanilla Vision Transformer with the fewest possible modifications, region priors, as well as inductive biases of the target task.

Show full abstract

We find that YOLOS pre-trained on the mid-sized ImageNet-1k dataset only can already achieve quite competitive performance on the challenging COCO object detection benchmark, e.g., YOLOS-Base directly adopted from BERT-Base architecture can obtain 42.0 box AP on COCO val. We also discuss the impacts as well as limitations of current pre-train schemes and model scaling strategies for Transformer in vision through YOLOS. Code and pre-trained models are available at https://github.com/hustvl/YOLOS.

View on arXivView PDF

Code Implementations(1)

hustvl/YOLOSOfficial100%
MIT

[NeurIPS 2021] You Only Look at One Sequence

901125Jupyter Notebook, PythonMay 30, 20214 years agoMIT
computer-visionobject-detectiontransformervision-transformer

Similar Papers

Cite this paper

@article{fang2021only,
  title  = {You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection},
  author = {Yuxin Fang and Bencheng Liao and Xinggang Wang and Jiemin Fang and Jiyang Qi and Rui Wu and Jianwei Niu and Wenyu Liu},
  year   = {2021},
  eprint = {2106.00666},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.00666}
}

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

Discussion