All models

yolov4_csp

A YOLOv4 real-time object detector that uses cross-stage partial (CSP) connections.

Detection and tracking · 170 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 (26 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
1.3M
Operations
170
Framework
PyTorch
Recurrent
No
Published
2020
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
m12247
Graph hash
c2f7b5bfbaeb2a5bbd4da7ff458873ac200366466cde471078e099a9592e0ab6
Skeleton hash
b6c7d7f57485e5560b8581530bb4ea3cff016ffe4f480331ace0c93f20ad3ba6
Architecture hash
8d097f14464a546b68c6b29b7f786d345fdc0fb80170b0d68aca81ab4d912015
Diagram SHA-256
d1bee60f0d92a0efd8056504c105cb782a3e3dd9044098e22b3183b81da771b7
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.yolov4_family:build_yolov4_csp: build({})

What it is

YOLOv4 is a real-time object detector meant to be trained and run on one conventional GPU. The paper states its main goal as a fast operating speed in production systems and optimization for parallel computations, not a low theoretical computation volume.

The architecture combines existing parts: a CSPDarknet53 backbone, an SPP additional module, a PANet path-aggregation neck and the anchor-based YOLOv3 head. The SPP block sits over the backbone because it significantly increases the receptive field and causes almost no reduction of the network operation speed. PANet, in place of the FPN used in YOLOv3, aggregates parameters from different backbone levels for different detector levels. Cross-stage partial connections (CSP) and Mish activation are among the features used in the backbone.

The paper sorts training techniques into two groups. A "bag of freebies" holds methods that only change the training strategy or only increase the training cost. A "bag of specials" holds plugin modules and post-processing methods that only increase the inference cost by a small amount. The paper also introduces Mosaic, a new method of data augmentation, and Self-Adversarial Training. It reports 43.5% AP (65.7% AP50) on the MS COCO dataset at a real-time speed of about 65 FPS on a Tesla V100.

Key idea. YOLOv4 combines a CSPDarknet53 backbone, an SPP module, a PANet neck and the YOLOv3 head into a real-time detector that trains on one conventional GPU.

  • yolov4
  • yolov4-csp
  • yolov4_csp
  • yolo v4
  • object detection
  • real-time object detection
  • one-stage detector
  • bag of freebies
  • cross-stage partial connections

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