All models

DEYO

A YOLO body with a transformer decoder head, trained in two steps for NMS-free real-time detection.

Detection and tracking · 940 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (43 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.3M
Operations
940
Framework
PyTorch
Recurrent
No
Published
2024
Cited by
50 (as of 26 November 2026)
Authors
Haodong Ouyang
License
GPL-3.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m495
Graph hash
5f6392bfea7bd2c87bf416d1d19b2978ad3906ecb7109fd4658544f0cc625fcd
Skeleton hash
b83a07630b1a676ca05e951860b9d7e2830a3cef589c6cbae5b1cb88e534a06d
Architecture hash
92486979c80936b6efd77ee99bb4a860a5883f3a4c7a7c706098984210a8a0cf
Diagram SHA-256
dd828ea2472c5f224b545a3fdb07fd3f835a04a0045977a2f6b9e4bff108429f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DEYO, short for DETR with YOLO, is a real-time end-to-end object detector whose encoder is purely convolutional. It borrows the purely convolutional neck of a YOLO detector as its encoder of multi-scale features. A transformer decoder then progressively refines the queries into predictions that correspond one to one with objects. Because of that one-to-one output there is no non-maximum suppression step, which the paper credits with a consistent inference speed.

The paper's real subject is the training recipe, which it calls step-by-step training. In the first stage a classic detector trained with one-to-many matching provides the backbone and neck of the end-to-end detector. In the second stage those parts are frozen and the decoder is trained from scratch. The first stage runs on the task's own dataset, so no additional dataset is needed. The motivation is that one-to-one matching gives too few supervisory signals and leaves the neck of a DETR inadequately pre-trained. The ablations back this up: dropping the pretrained neck while keeping the pretrained backbone costs 18.8 average precision points. Freezing the backbone and neck in the second stage adds 1.1 AP over fine-tuning them.

On COCO val2017, DEYO-tiny reaches 37.6% AP at 497 FPS on an NVIDIA Tesla T4 GPU, and DEYO-X reaches 53.7% AP at 65 FPS. DEYO-tiny uses 100 queries while the other scales use 300. The whole series can finish its second training phase on COCO on a single 8GB RTX 4060 GPU. The paper admits that gains shrink as the model grows and suspects a mismatch between the output dimensions of the YOLOv8 neck and the hidden dimensions of the decoder. The README also cautions that the speed advantage depends on NMS being a bottleneck: once the score threshold rises to 0.005, DEYO-tiny does not maintain a speed advantage. In the official code, DEYO is built on the ultralytics package and loaded through its RTDETR class from yolov8-rtdetr.yaml.

A separate paper under the same name proposes a two-stage DEYO that relies on progressive inference. There, a YOLOv5 model is the first stage and a DINO model is the second stage. That design reaches 50.6 AP and 52.1 AP in 12 and 36 epochs with ResNet-50 as the backbone on COCO. The released repository is the official implementation of the End-to-End Object Detection paper. Its README points to an upgraded version, DEYOv1.5.

Key idea. Step-by-step training initializes the backbone and neck of an end-to-end detector from a classic detector pre-trained with one-to-many matching, then freezes them while the decoder is trained. The result is a real-time end-to-end detector with a purely convolutional encoder.

  • DEYO
  • DETR with YOLO
  • real-time object detection
  • end-to-end object detector
  • YOLOv8
  • RT-DETR
  • NMS-free detector
  • step-by-step training
  • ultralytics

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ouyang2024deyodetryoloendtoend,
      title={DEYO: DETR with YOLO for End-to-End Object Detection}, 
      author={Haodong Ouyang},
      year={2024},
      eprint={2402.16370},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2402.16370}, 
}