All models

yolov7x

YOLOv7 scaled up in depth and width by the paper's compound scaling method.

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
22.2M
Operations
374
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2022)
Cited by
13,190 (as of 29 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
m12255
Graph hash
692044607d2bc1677fe9ac8fedaceb38f348a0b0f1b096c1db201929b6c86c6e
Skeleton hash
30dd0bc0494641c61f99b9590fd539ea9954d901b333c27a2a6920f6843bc3cb
Architecture hash
6095d9f6cd806940a7e699121e1a9a4ab9b880426fff59aae1991b957bef76f3
Diagram SHA-256
ede9351508eb49deb09cfe0f3608159b789c0c5250ec17c1e8649a46b8963352
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

How this diagram was made

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

What it is

YOLOv7-X is the scaled-up sibling of the normal-GPU YOLOv7 detector: the authors stack-scale the neck and then apply their compound scaling method to the depth and width of the whole model. The YOLOv7 paper claims the family surpasses all known object detectors in both speed and accuracy in the range from 5 FPS to 160 FPS. All of the models were trained only on MS COCO from scratch, with no other datasets or pre-trained weights.

The paper's title refers to what the authors call trainable bag-of-freebies, methods that improve detection accuracy without increasing the inference cost. One is planned re-parameterized convolution, which uses RepConv without its identity connection (RepConvN). Another is coarse-to-fine lead guided label assignment, in which the lead head's prediction guides the soft labels used to train both the auxiliary head and the lead head.

YOLOv7-X is also the model the paper uses to justify compound scaling. Because the architecture is concatenation-based, scaling up depth changes the input width of the transition layer that follows a block, so depth and width have to be considered together. In the ablation, the compound recipe scales the depth of the computational block by 1.5 times and the width of the transition block by 1.25 times. Compared with scaling width alone, that gives 0.5% more AP with fewer parameters and less computation. Apart from the tiny model, which uses leaky ReLU, the YOLOv7 models use SiLU as their activation function.

Against YOLOv5-L (r6.1), the paper reports that YOLOv7-X runs at 114 fps versus 99 fps while improving AP by 3.9%.

Key idea. YOLOv7 introduces trainable bag-of-freebies, training-time methods that improve real-time detection accuracy without increasing the inference cost. The architecture pairs the new E-ELAN block with a compound scaling rule for concatenation-based models.

  • yolov7-x
  • yolov7x
  • yolov7 x
  • yolov7
  • yolo
  • real-time object detector
  • object detection
  • trainable bag-of-freebies
  • compound scaling
  • coco

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