TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/You Only Look at One Sequence: Rethinking Transformer in V...

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

Yuxin Fang, Bencheng Liao, Xinggang Wang, Jiemin Fang, Jiyang Qi, Rui Wu, Jianwei Niu, Wenyu Liu

2021-06-01NeurIPS 2021 12object-detectionObject Detection
PaperPDFCode(official)Code

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. 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.

Results

TaskDatasetMetricValueModel
Object DetectionCOCO-OAverage mAP20YOLOS-B (ViT-B)
Object DetectionCOCO-OEffective Robustness1.05YOLOS-B (ViT-B)
3DCOCO-OAverage mAP20YOLOS-B (ViT-B)
3DCOCO-OEffective Robustness1.05YOLOS-B (ViT-B)
2D ClassificationCOCO-OAverage mAP20YOLOS-B (ViT-B)
2D ClassificationCOCO-OEffective Robustness1.05YOLOS-B (ViT-B)
2D Object DetectionCOCO-OAverage mAP20YOLOS-B (ViT-B)
2D Object DetectionCOCO-OEffective Robustness1.05YOLOS-B (ViT-B)
16kCOCO-OAverage mAP20YOLOS-B (ViT-B)
16kCOCO-OEffective Robustness1.05YOLOS-B (ViT-B)

Related Papers

A Real-Time System for Egocentric Hand-Object Interaction Detection in Industrial Domains2025-07-17RS-TinyNet: Stage-wise Feature Fusion Network for Detecting Tiny Objects in Remote Sensing Images2025-07-17Decoupled PROB: Decoupled Query Initialization Tasks and Objectness-Class Learning for Open World Object Detection2025-07-17Dual LiDAR-Based Traffic Movement Count Estimation at a Signalized Intersection: Deployment, Data Collection, and Preliminary Analysis2025-07-17Vision-based Perception for Autonomous Vehicles in Obstacle Avoidance Scenarios2025-07-16Tomato Multi-Angle Multi-Pose Dataset for Fine-Grained Phenotyping2025-07-15ECORE: Energy-Conscious Optimized Routing for Deep Learning Models at the Edge2025-07-08Beyond One Shot, Beyond One Perspective: Cross-View and Long-Horizon Distillation for Better LiDAR Representations2025-07-07