All models

yolov7

The basic YOLOv7 real-time object detector, designed for a normal GPU.

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,166 (as of 26 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
m12249
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, and this model is the basic version that the paper designs for a normal GPU, next to YOLOv7-tiny for edge GPU and YOLOv7-W6 for cloud GPU. The paper works on the training process as well as the architecture. It calls its modules and optimization methods a trainable bag-of-freebies: they may raise the training cost to improve detection accuracy, but do not increase the inference cost.

On the architecture side the paper proposes Extended-ELAN (E-ELAN), which uses group convolution to expand the channel and cardinality of computational blocks and then shuffles and merges the feature maps, without destroying the original gradient path. For re-parameterized convolution it finds that the identity connection in RepConv destroys the residual in ResNet and the concatenation in DenseNet, so it designs with RepConv without identity connection (RepConvN). During training an auxiliary head assists the lead head, the head responsible for the final output, and the lead head prediction guides the labels that both heads learn from.

The experiments use the Microsoft COCO dataset, and the paper states that YOLOv7 is trained from scratch without any other datasets or pre-trained weights. The paper reports 51.4% AP for YOLOv7 at a frame rate of 161 fps, where PPYOLOE-L with the same AP has only 78 fps.

Key idea. The YOLOv7 paper designs trainable bag-of-freebies methods that improve real-time detection accuracy without increasing the inference cost.

  • yolov7
  • yolo7
  • yolo v7
  • object detection
  • real-time object detection
  • trainable bag-of-freebies
  • real-time object detector

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}, 
}