All models

wongkinyiu_yolov7

A real-time object detector trained with re-parameterized convolution and lead-guided auxiliary heads.

Detection and tracking · 374 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 (29 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
14.2M
Operations
374
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2022)
Cited by
13,170 (as of 27 October 2026)
Authors
Chien-Yao Wang, Alexey Bochkovskiy, Hong-Yuan Mark Liao
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
m12225
Graph hash
692044607d2bc1677fe9ac8fedaceb38f348a0b0f1b096c1db201929b6c86c6e
Skeleton hash
30dd0bc0494641c61f99b9590fd539ea9954d901b333c27a2a6920f6843bc3cb
Architecture hash
a26be597b6ecdbc9fc201b138b57fd7c729d3b45d008e6432db157a763e62944
Diagram SHA-256
ab01962f8a7f69d49e03130c528dd0346d2323585926d2f11643af6e4edafdfa
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.yolov7_family:build_yolov7: build({})

What it is

YOLOv7 is a real-time object detector whose paper works on the training process as well as the architecture. The paper calls its training methods a trainable bag-of-freebies: modules and optimization methods that raise the training cost to improve detection accuracy without increasing the inference cost.

One of them is planned re-parameterized convolution, designed with RepConv without the identity connection, which the paper calls RepConvN. Another is a label assignment in which the predictions of the lead head guide the generation of coarse-to-fine labels, used to train an auxiliary head and the lead head. On the architecture side the paper proposes Extended-ELAN (E-ELAN), which uses group convolution to expand the channel and cardinality of the computational blocks.

YOLOv7 itself is the basic model the authors designed for a normal GPU, next to YOLOv7-tiny for edge GPU and YOLOv7-W6 for cloud GPU. All models in the paper were trained from scratch on the Microsoft COCO dataset, without pre-trained models. The paper reports that on COCO YOLOv7 has 75% fewer parameters and 36% less computation than YOLOv4, with 1.5% higher AP. It also reports 51.4% AP at a frame rate of 161 fps.

Key idea. YOLOv7 adds trainable bag-of-freebies training methods, such as planned re-parameterized convolution and lead-guided label assignment, that raise detection accuracy without increasing inference cost.

  • yolov7
  • yolo v7
  • yolo
  • real-time object detection
  • object detector
  • trainable bag-of-freebies
  • wongkinyiu yolov7
  • e-elan
  • coco object detection

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

Cite the paper

@misc{wang2022yolov7trainablebagoffreebiessets,
      title={YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors}, 
      author={Chien-Yao Wang and Alexey Bochkovskiy and Hong-Yuan Mark Liao},
      year={2022},
      eprint={2207.02696},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2207.02696}, 
}