Cited by 2,738Advanced Neural Network ApplicationsDomain Adaptation and Few-Shot LearningSmart Agriculture and AI

ultralytics/yolov5: v4.0 - nn.SiLU() activations, Weights & Biases logging, PyTorch Hub integration

Open access
Jocher, Glenn, Stoken, Alex, Borovec, Jirka, NanoCode012, ChristopherSTAN, Changyu, Liu, Laughing, Tkianai +22 more·2021·Zenodo

Abstract

This release implements two architecture changes to YOLOv5, as well as various bug fixes and performance improvements. Breaking Changes nn.SiLU() activations replace nn.LeakyReLU(0.1) and nn.Hardswish() activations used in previous versions. nn.SiLU() was introduced in PyTorch 1.7.0 (https://pytorch.org/docs/stable/generated/torch.nn.SiLU.html), and due to the recent timeframe certain export pipelines may be temporarily unavailable (CoreML possibly) without updates to the associated tools (i.e. coremltools). Bug Fixes Multi-GPU --resume #1810 leaf Variable inplace bug fix #1759 Various bug fixes contained in PRs #1235 through #1837 Added Functionality Weights & Biases (W&B) Feature Addition #1235 Utils reorganization #1392 PyTorch Hub and autoShape update #1415 W&B artifacts feature addition #1712 Various additional feature additions contained in PRs #1235 through #1837 Updated Results Latest models are all slightly smaller to due removal of one convolution within each bottleneck, which have been renamed as C3() modules now in light of the 3 I/O convolutions each one does vs the 4 in the standard CSP bottleneck. The previous manual concatenation and LeakyReLU(0.1) activations have both removed, simplifying the architecture, reducing parameter count, and better exploiting the .fuse() operation at inference time. nn.SiLU() activations replace nn.LeakyReLU(0.1) and nn.Hardswish() activations throughout the model, simplifying the architecture as we now only have one single activation function used everywhere rather than the two types before. In general the changes result in smaller models (89.0M params -> 87.7M YOLOv5x), faster inference times (6.9ms -> 6.0ms), and improved mAP (49.2 -> 50.1) for all models except YOLOv5s, which reduced mAP slightly (37.0 -> 36.8). In general the largest models benefit the most from this update. YOLOv5x in particular is now above 50.0 mAP at --img-size 640, which may be the first time this is possible at 640 resolution for any architecture I'm aware of (correct me if I'm wrong though). ** GPU Speed measures end-to-end time per image averaged over 5000 COCO val2017 images using a V100 GPU with batch size 32, and includes image preprocessing, PyTorch FP16 inference, postprocessing and NMS. EfficientDet data from google/automl at batch size 8. Pretrained Checkpoints Model size AP val AP test AP 50 Speed V100 FPS V100 params GFLOPS YOLOv5s 640 36.8 36.8 55.6 2.2ms 455 7.3M 17.0 YOLOv5m 640 44.5 44.5 63.1 2.9ms 345 21.4M 51.3 YOLOv5l 640 48.1 48.1 66.4 3.8ms 264 47.0M 115.4 YOLOv5x 640 50.1 50.1 68.7 6.0ms 167 87.7M 218.8 YOLOv5x + TTA 832 51.9 51.9 69.6 24.9ms 40 87.7M 1005.3

Integrity signals

Registry

DataCite · 10.5281/zenodo.4418161

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Cited by

Sorted by citations

Authors
Jocher, G., Stoken, A., Borovec, J., NanoCode012, ChristopherSTAN, Changyu, L., Laughing, Tkianai, YxNONG, Hogan, A., Lorenzomammana, AlexWang1900, Chaurasia, A., Diaconu, L., M., Wanghaoyang0106, Ml5ah, D., Durgesh, Ingham, F., F., Guilhen, Colmagro, A., Ye, H., Jacobsolawetz, Poznanski, J., Fang, J., Kim, J., Doan, K., & 于力军, L. Y.
Affiliations
  • @ultralytics
  • Johnson Space Center (US)
  • Czech Technical University in Prague (CZ)
  • Alibaba Group (United States) (US)
  • 垃圾就该待在垃圾桶里
  • University of Milano-Bicocca (IT)
  • @innaite
  • IIT Roorkee
  • HUST
  • roboflow.ai
  • Nota
  • VNPT ISC
  • Carnegie Mellon University (US)
Venue
Zenodo
Publisher
Zenodo
Published
2021-01-05
OpenAlex
W6893711219
Cited by
2,738
References
0
Citations by year
2026: 227 · 2025: 534 · 2024: 681 · 2023: 759 · 2022: 370 · 2021: 161 · 2020: 6
Type
software
Language
en
Open access
Licence
other-oa
Locations
  • Zenodo (CERN European Organization for Nuclear Research) (submittedVersion, other-oa)
  • Zenodo (CERN European Organization for Nuclear Research) (other-oa)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Life Sciences › Agricultural and Biological Sciences › Plant Science › Smart Agriculture and AI
Keywords
instance segmentation, real-time object detection

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review