{"notes":[{"id":"object-detection/yolov3","category":"object-detection","legacyPath":"object-detection/1804-yolov3","legacySlug":"1804-yolov3","legacyPaths":[],"title":"YOLOv3","subtitle":"Introducing Multi-Scale Detection","author":"Z. Yuan","paperDate":"2018-04-08","publishedOn":"2024-08-06","paperTitle":"YOLOv3: An Incremental Improvement","paperUrl":"https://arxiv.org/abs/1804.02767","bibliography":{"title":"YOLOv3: An Incremental Improvement","authors":["Joseph Redmon","Ali Farhadi"],"url":"https://arxiv.org/abs/1804.02767","pdfUrl":"https://arxiv.org/pdf/1804.02767","codeUrl":null,"preprint":{"id":"1804.02767","submittedOn":"2018-04-08","url":"https://arxiv.org/abs/1804.02767"},"publication":null,"citation":"@misc{objectdetectionyolov32018,\n  title = {{YOLOv3: An Incremental Improvement}},\n  author = {Joseph Redmon and Ali Farhadi},\n  year = {2018},\n  eprint = {1804.02767},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1804.02767}\n}\n","citationPath":"/content/papers/citations/object-detection/yolov3.7da7902dcdd3.bib"},"thumbnail":{"src":"/content/papers/assets/747a5edbaf444aafd5c52304a2f5d622c6baa2ba745631e8f93477602271135f.jpg","width":1224,"height":760},"locale":"en","path":"/content/papers/en/object-detection/yolov3.7e84d35d14de.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"darknet-53-deeper-with-measured-throughput","text":"Darknet-53: Deeper, With Measured Throughput","depth":3},{"id":"three-scales-and-independent-class-scores","text":"Three Scales and Independent Class Scores","depth":3},{"id":"multi-scale-prediction","text":"Multi-Scale Prediction","depth":4},{"id":"experimental-results-and-discussion","text":"Experimental Results and Discussion","depth":2},{"id":"coco-separate-ap-from-ap50","text":"COCO: Separate AP From AP50","depth":3},{"id":"failed-experiments-are-useful-too","text":"Failed Experiments Are Useful Too","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"problem-solution":"solution","updated-backbone":"darknet-53-deeper-with-measured-throughput","class-prediction":"three-scales-and-independent-class-scores","multi-scale-detection":"three-scales-and-independent-class-scores","discussion":"experimental-results-and-discussion","performance-on-coco":"coco-separate-ap-from-ap50","attempts-that-didnt-work":"failed-experiments-are-useful-too"},"guide":null,"relatedReading":[{"id":"object-detection/yolov2","relation":"background","topic":"One-stage detection from YOLO to multiscale prediction"},{"id":"object-detection/yolov4","relation":"next","topic":"One-stage detection from YOLO to multiscale prediction"}]},{"id":"object-detection/yolov2","category":"object-detection","legacyPath":"object-detection/1612-yolov2","legacySlug":"1612-yolov2","legacyPaths":[],"title":"YOLOv2","subtitle":"Expanding a Large Number of Categories","author":"Z. Yuan","paperDate":"2016-12-25","publishedOn":"2024-08-06","paperTitle":"YOLO9000: Better, Faster, Stronger","paperUrl":"https://arxiv.org/abs/1612.08242","bibliography":{"title":"YOLO9000: Better, Faster, Stronger","authors":["Joseph Redmon","Ali Farhadi"],"url":"https://arxiv.org/abs/1612.08242","pdfUrl":"https://arxiv.org/pdf/1612.08242","codeUrl":null,"preprint":{"id":"1612.08242","submittedOn":"2016-12-25","url":"https://arxiv.org/abs/1612.08242"},"publication":{"venue":"CVPR","year":2017,"kind":"conference","url":"https://openaccess.thecvf.com/content_cvpr_2017/html/Redmon_YOLO9000_Better_Faster_CVPR_2017_paper.html"},"citation":"@misc{objectdetectionyolov22016,\n  title = {{YOLO9000: Better, Faster, Stronger}},\n  author = {Joseph Redmon and Ali Farhadi},\n  year = {2016},\n  eprint = {1612.08242},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1612.08242}\n}\n","citationPath":"/content/papers/citations/object-detection/yolov2.91dea0de1c4b.bib"},"thumbnail":{"src":"/content/papers/assets/35adeb2b949c06b82231c9b311ccaf07b25edbf1c17780947fcef69246b3095b.jpg","width":1224,"height":900},"locale":"en","path":"/content/papers/en/object-detection/yolov2.4685b728da7c.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"learn-box-priors-and-constrain-centers-to-cells","text":"Learn Box Priors and Constrain Centers to Cells","depth":3},{"id":"fine-features-and-variable-input","text":"Fine Features and Variable Input","depth":3},{"id":"darknet-19-and-yolo9000","text":"Darknet-19 and YOLO9000","depth":3},{"id":"experimental-results-and-discussion","text":"Experimental Results and Discussion","depth":2},{"id":"voc-speed-and-ablations","text":"VOC Speed and Ablations","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"problem-solving":"solution","anchor-box-selection":"learn-box-priors-and-constrain-centers-to-cells","prediction-box-design":"learn-box-priors-and-constrain-centers-to-cells","multi-scale-training":"fine-features-and-variable-input","darknet-19":"darknet-19-and-yolo9000","classification-head-design":"darknet-19-and-yolo9000","discussion":"experimental-results-and-discussion","experiments-on-pascal-voc":"voc-speed-and-ablations","from-v1-to-v2":"voc-speed-and-ablations"},"guide":null,"relatedReading":[{"id":"object-detection/yolov1","relation":"background","topic":"One-stage detection from YOLO to multiscale prediction"},{"id":"object-detection/yolov3","relation":"next","topic":"One-stage detection from YOLO to multiscale prediction"}]},{"id":"object-detection/yolov4","category":"object-detection","legacyPath":"object-detection/2004-yolov4","legacySlug":"2004-yolov4","legacyPaths":[],"title":"YOLOv4","subtitle":"Model Design Overview","author":"Z. Yuan","paperDate":"2020-04-23","publishedOn":"2025-06-11","paperTitle":"YOLOv4: Optimal Speed and Accuracy of Object Detection","paperUrl":"https://arxiv.org/abs/2004.10934","bibliography":{"title":"YOLOv4: Optimal Speed and Accuracy of Object Detection","authors":["Alexey Bochkovskiy","Chien-Yao Wang","Hong-Yuan Mark Liao"],"url":"https://arxiv.org/abs/2004.10934","pdfUrl":"https://arxiv.org/pdf/2004.10934","codeUrl":"https://github.com/AlexeyAB/darknet","preprint":{"id":"2004.10934","submittedOn":"2020-04-23","url":"https://arxiv.org/abs/2004.10934"},"publication":null,"citation":"@misc{objectdetectionyolov42020,\n  title = {{YOLOv4: Optimal Speed and Accuracy of Object Detection}},\n  author = {Alexey Bochkovskiy and Chien-Yao Wang and Hong-Yuan Mark Liao},\n  year = {2020},\n  eprint = {2004.10934},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2004.10934}\n}\n","citationPath":"/content/papers/citations/object-detection/yolov4.a7f1ea7e48b3.bib"},"thumbnail":{"src":"/content/papers/assets/496022bc34a575f7a5d928577123ed8d5bebbdbd60f1346bf17bb2e2e79d6789.jpg","width":928,"height":572},"locale":"en","path":"/content/papers/en/object-detection/yolov4.64a26e15cfaa.md","headings":[{"id":"model-architecture-overview","text":"Model Architecture Overview","depth":2},{"id":"two-design-paradigms","text":"Two Design Paradigms","depth":2},{"id":"neck-for-feature-fusion","text":"Neck for Feature Fusion","depth":2},{"id":"backbones-designed-for-detection","text":"Backbones Designed for Detection","depth":2},{"id":"training-optimization-techniques","text":"Training Optimization Techniques","depth":2},{"id":"data-augmentation","text":"Data Augmentation","depth":3},{"id":"label-smoothing-and-knowledge-distillation","text":"Label Smoothing and Knowledge Distillation","depth":3},{"id":"loss-function-optimization","text":"Loss Function Optimization","depth":3},{"id":"sophisticated-module-design","text":"Sophisticated Module Design","depth":2},{"id":"receptive-field-expansion","text":"Receptive Field Expansion","depth":3},{"id":"attention-mechanisms","text":"Attention Mechanisms","depth":3},{"id":"cross-scale-integration","text":"Cross-Scale Integration","depth":3},{"id":"activation-function-evolution","text":"Activation Function Evolution","depth":3},{"id":"nms-post-processing","text":"NMS Post-processing","depth":3},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"architecture-choice","text":"Architecture Choice","depth":3},{"id":"training-strategy-choice","text":"Training Strategy Choice","depth":3},{"id":"additional-enhancement-designs","text":"Additional Enhancement Designs","depth":3},{"id":"component-overview-and-technology-choices","text":"Component Overview and Technology Choices","depth":3},{"id":"experimental-setup","text":"Experimental Setup","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"impact-of-different-features-during-classifier-training","text":"Impact of Different Features During Classifier Training","depth":3},{"id":"impact-of-different-features-during-detector-training","text":"Impact of Different Features During Detector Training","depth":3},{"id":"impact-of-different-backbones","text":"Impact of Different Backbones","depth":3},{"id":"impact-of-different-mini-batch-sizes","text":"Impact of Different Mini-Batch Sizes","depth":3},{"id":"benchmark","text":"Benchmark","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{"defining-the-problem":"model-architecture-overview","build-the-detector-from-blocks":"model-architecture-overview","free-training-additions-and-special-inference-parts":"training-optimization-techniques","finally-yolov4-itself":"architecture-choice","assemble-a-toolkit-for-one-gpu-training":"training-strategy-choice","experimental-results-and-discussion":"discussion","does-the-best-classifier-make-the-best-detector":"impact-of-different-features-during-classifier-training","detector-ablations-count-outcomes-not-check-marks":"impact-of-different-features-during-detector-training","speed-and-accuracy-on-which-gpu":"benchmark"},"guide":null,"relatedReading":[{"id":"object-detection/yolov3","relation":"background","topic":"One-stage detection from YOLO to multiscale prediction"}]}],"text":"The third generation of YOLO is not a formal research paper. As the author himself puts it, this is a technical report.\n\n## Problem Definition\n\nThere have been many recent advances in object detection.\n\nThe author thought it was time to bring some of these ideas into YOLO and make a few improvements.\n\nThe bounding-box prediction design remains the same as YOLOv2, so we will not go through it again here.\n\n- [**[16.12] YOLOv2: Expanding a Large Number of Categories**](/blog/papers/object-detection/yolov2)\n\n## Solution\n\nThe author made a series of improvements.\n\n### Darknet-53: Deeper, With Measured Throughput\n\n![Darknet-53 backbone, technical report Table 1](/content/papers/assets/862a27cfdc68988d12e756de6ec80a8680f5f18bfa7015ce28d3b93863918771.jpg \"Redmon and Farhadi, YOLOv3: An Incremental Improvement, Table 1\")\n\nThe author replaced Darknet-19 with Darknet-53. It still uses successive 3×3 and 1×1 convolutional layers, now with residual connections. This deeper network was trained on ImageNet; its 53 convolutional layers give Darknet-53 its name.\n\nThe table below shows Darknet-53 on ImageNet. Its top-1 accuracy is 77.2%, close to ResNet-101's 77.1%. Under the table's 256×256, Titan X test conditions, it runs at 78 FPS versus ResNet-101's 53 FPS, or about 1.5 times as fast.\n\n![ImageNet classification accuracy and speed, technical report Table 2](/content/papers/assets/f953dee3a6db2c115a02eebb5e3b8d76665b704ba7c5ba8286188f51e541a78a.jpg \"Redmon and Farhadi, Table 2; 256×256 classification on Titan X\")\n\n### Three Scales and Independent Class Scores\n\nInstead of softmax, YOLOv3 uses logistic regression to predict the probability of each class.\n\nThis does not force each box to belong to only one class. The same box may have overlapping labels such as “woman” and “person” in the dataset.\n\n#### Multi-Scale Prediction\n\nDrawing on ideas from FPN and RetinaNet, the author introduced multi-scale detection in YOLOv3.\n\nK-means clustering still determines the anchor-box dimensions. The difference is that YOLOv3 predicts from feature maps at three scales: 1/32, 1/16, and 1/8 of the input. Deeper features are upsampled and concatenated with shallower features before prediction at the next scale. In the COCO experiment, each location at each scale predicts three boxes. Every box has four bounding-box offsets, one object-confidence score, and 80 class probabilities.\n\nThe prediction tensor at a given scale has shape $N \\times N \\times [3 \\times (4 + 1 + 80)]$, where $N$ is that scale's feature-map width and height.\n\n## Experimental Results and Discussion\n\n### COCO: Separate AP From AP50\n\n![COCO AP50 against inference time, technical report Figure 3](/content/papers/assets/747a5edbaf444aafd5c52304a2f5d622c6baa2ba745631e8f93477602271135f.jpg \"Redmon and Farhadi, Figure 3; comparison plot adapted from RetinaNet\")\n\n![COCO detection results, technical report Table 3](/content/papers/assets/f7b014b6ed2819185d5b39e39ffa97c71835bdd8af7240e6b7f4d0c2dd115b4d.jpg \"Redmon and Farhadi, Table 3; comparison rows from RetinaNet\")\n\nThe author openly admits that, rather than spend a great deal of time retraining other architectures, he “borrowed” a plot and a table from the RetinaNet paper and added YOLOv3's results. The comparisons show a good balance of speed and accuracy.\n\nIn the table, YOLOv3 does particularly well on $AP_{50}$, far above the SSD architecture shown there. Its performance falls as the IoU threshold rises, however, suggesting that it has more difficulty producing tightly localized boxes.\n\nEarlier YOLO models struggled with small objects, but YOLOv3 reverses that trend. With the new multi-scale detector, small-object AP rises from YOLOv2's 5.0 to 18.3. Medium- and large-object AP also improve over YOLOv2, although they still trail some of the other models in the table.\n\n### Failed Experiments Are Useful Too\n\nThe author also reports several training experiments that did not help:\n\n1. **Anchor-center x, y offsets:** Predicting offsets in units of box width and height with a linear activation made the model less stable and performed poorly.\n2. **Linear x, y prediction instead of logistic:** Directly predicting the offsets with a linear activation reduced mAP by a few points.\n3. **Focal Loss:** This attempt to address class imbalance reduced mAP by about two points. The author says he does not know why.\n4. **Two IoU thresholds:** Following Faster R-CNN, treating IoU above 0.7 as positive, below 0.3 as negative, and ignoring the middle range did not work well here.\n\n## Conclusion\n\nPrevious research suggests that people have trouble telling detection boxes with IoU 0.3 and 0.5 apart by eye. The author therefore questions how meaningful it is to keep chasing higher scores on these validation datasets.\n\nIn his view, YOLOv3 already performs well enough for most real-world problems. We should focus on model safety and on using these powerful models responsibly, so that they cause less harm in the world.\n\n\n> [!TIP]\n> \n> This technical report has an unusually candid style. If you are curious about the author's own words, take a look at the original.\n","imageSizes":{"/content/papers/assets/862a27cfdc68988d12e756de6ec80a8680f5f18bfa7015ce28d3b93863918771.jpg":{"width":1060,"height":1080},"/content/papers/assets/f953dee3a6db2c115a02eebb5e3b8d76665b704ba7c5ba8286188f51e541a78a.jpg":{"width":1092,"height":256},"/content/papers/assets/747a5edbaf444aafd5c52304a2f5d622c6baa2ba745631e8f93477602271135f.jpg":{"width":1224,"height":760},"/content/papers/assets/f7b014b6ed2819185d5b39e39ffa97c71835bdd8af7240e6b7f4d0c2dd115b4d.jpg":{"width":1718,"height":624}}}
