<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scaled YOLOv4 | Haobin Tan</title><link>https://haobin-tan.netlify.app/tags/scaled-yolov4/</link><atom:link href="https://haobin-tan.netlify.app/tags/scaled-yolov4/index.xml" rel="self" type="application/rss+xml"/><description>Scaled YOLOv4</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Tue, 05 Jan 2021 00:00:00 +0000</lastBuildDate><image><url>https://haobin-tan.netlify.app/media/icon_hu7d15bc7db65c8eaf7a4f66f5447d0b42_15095_512x512_fill_lanczos_center_3.png</url><title>Scaled YOLOv4</title><link>https://haobin-tan.netlify.app/tags/scaled-yolov4/</link></image><item><title>Scaled YOLOv4</title><link>https://haobin-tan.netlify.app/docs/ai/computer-vision/object-detection/scaled-yolo-v4/</link><pubDate>Tue, 05 Jan 2021 00:00:00 +0000</pubDate><guid>https://haobin-tan.netlify.app/docs/ai/computer-vision/object-detection/scaled-yolo-v4/</guid><description>&lt;p>Chien-Yao Wang, Alexey Bochkovskiy, and Hong-Yuan Mark Liao (more commonly known by their GitHub monikers, &lt;a href="https://github.com/WongKinYiu">WongKinYiu&lt;/a> and &lt;a href="https://github.com/AlexeyAB">AlexyAB&lt;/a>) have propelled the YOLOv4 model forward by efficiently scaling the network&amp;rsquo;s design and scale, surpassing the previous state-of-the-art EfficientDet published earlier this year by the Google Research/Brain team.&lt;/p>
&lt;img src="https://raw.githubusercontent.com/EckoTan0804/upic-repo/master/uPic/image.png" alt="img" style="zoom:80%;" />
&lt;h2 id="train-scaled-yolov4-pytorch">Train scaled YOLOv4 (PyTorch)&lt;/h2>
&lt;p>The Scaled-YOLOv4 implementation is written in the YOLOv5 PyTorch framework. Training scaled YOLOv4 is similar to &lt;a href="https://haobin-tan.netlify.app/tags/yolov5/">training YOLOv5&lt;/a>.&lt;/p>
&lt;blockquote>
&lt;p>Here is &lt;a href="https://github.com/WongKinYiu/ScaledYOLOv4/blob/yolov4-large/models/yolov4-csp.yaml">t&lt;/a>&lt;a href="https://github.com/WongKinYiu/ScaledYOLOv4/blob/yolov4-large/models/yolov4-csp.yaml">he Scaled-YOLOv4 repo&lt;/a>, though you will notice that &lt;a href="https://github.com/WongKinYiu">WongKinYiu&lt;/a> has provided it there predominantly for research replication purposes and there are not many instructions for training on your own dataset. To train on your own data, our guide on &lt;a href="https://blog.roboflow.com/how-to-train-yolov5-on-a-custom-dataset/">training YOLOv5 in PyTorch on custom data&lt;/a> will be useful, as it is a very similar training procedure.&lt;/p>
&lt;/blockquote>
&lt;p>Tutorials from Roboflow:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Video tutorial:&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/rEbpKxZbvIo?autoplay=0&amp;controls=1&amp;end=0&amp;loop=0&amp;mute=0&amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"
>&lt;/iframe>
&lt;/div>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://blog.roboflow.com/how-to-train-scaled-yolov4/">Blog post&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://colab.research.google.com/drive/1LDmg0JRiC2N7_tx8wQoBzTB0jUZhywQr?usp=sharing">Google Colab Notebook&lt;/a>&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>My Colab Notebook: &lt;a href="https://colab.research.google.com/drive/1GfOzuMCpIcg1luILv7rehfY3Hk4p4SWc">yolov4_scaled.ipynb&lt;/a>&lt;/p>
&lt;h2 id="train-scaled-yolov4-darknet">Train scaled YOLOv4 (Darknet)&lt;/h2>
&lt;p>YOLOv4-csp training is also supported by &lt;a href="https://github.com/AlexeyAB/darknet#pre-trained-models">Darknet&lt;/a>. Training yolov4-csp is similar to training yolov4 and yolov4-tiny. Slight difference:&lt;/p>
&lt;ul>
&lt;li>For config file, use &lt;a href="https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/yolov4-csp.cfg">yolov4-csp.cfg&lt;/a>&lt;/li>
&lt;li>For pretrained weights, use &lt;a href="https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-csp.weights">yolov4-csp.weights&lt;/a>&lt;/li>
&lt;li>For pretrained convolutional layer weights, use &lt;a href="https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-csp.conv.142">yolov4-csp.conv.142&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="reference">Reference&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>Scaled YOLOv4 &lt;a href="https://arxiv.org/abs/2011.08036">paper&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Github repo: &lt;a href="https://github.com/WongKinYiu">WongKinYiu&lt;/a>/&lt;strong>&lt;a href="https://github.com/WongKinYiu/ScaledYOLOv4">ScaledYOLOv4&lt;/a>&lt;/strong> (Different size of model in different branch)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Blog post from AlexAB: &lt;a href="https://alexeyab84.medium.com/scaled-yolo-v4-is-the-best-neural-network-for-object-detection-on-ms-coco-dataset-39dfa22fa982">Scaled YOLO v4 is the best neural network for object detection on MS COCO dataset&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Tutorials blog posts:&lt;/p>
&lt;ul>
&lt;li>robolfow: &lt;a href="https://blog.roboflow.com/scaled-yolov4-tops-efficientdet/">Scaled-YOLOv4 is Now the Best Model for Object Detection&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://bbs.cvmart.net/articles/3674">YOLOv4 团队最新力作！1774fps、COCO 最佳精度，分别适合高低端 GPU 的 YOLO&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://zhuanlan.zhihu.com/p/299385758">上达最高精度，下到最快速度，Scaled-YOLOv4：模型缩放显神威&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul></description></item><item><title>YOLOv3: Train on Custom Dataset</title><link>https://haobin-tan.netlify.app/docs/ai/computer-vision/object-detection/train-yolo-v3/</link><pubDate>Tue, 05 Jan 2021 00:00:00 +0000</pubDate><guid>https://haobin-tan.netlify.app/docs/ai/computer-vision/object-detection/train-yolo-v3/</guid><description>&lt;p>Training YOLOv3 as well as YOLOv3 tiny on custom dataset is similar to &lt;a href="https://haobin-tan.netlify.app/docs/ai/computer-vision/object-detection/train-yolo-v4-custom-dataset/">training YOLOv4 and YOLOv4 tiny&lt;/a>. Only some steps need to be adjusted for YOLOv3 and YOLOv3 tiny:&lt;/p>
&lt;ul>
&lt;li>In step 1, we create our custom config file based on &lt;strong>cfg/yolov3.cfg&lt;/strong> (YOLOv3) and &lt;strong>cfg/yolov3-tiny.cfg&lt;/strong> (YOLOv3 tiny). Then adjust &lt;code>batch&lt;/code>, &lt;code>subdivisions&lt;/code>, &lt;code>steps&lt;/code>, &lt;code>width&lt;/code>, &lt;code>height&lt;/code>, &lt;code>classes&lt;/code>, and &lt;code>filters&lt;/code> just as for YOLOv4.&lt;/li>
&lt;li>In step 6, download different pretrained weights for the convolutional layers
&lt;ul>
&lt;li>for &lt;code>yolov3.cfg, yolov3-spp.cfg&lt;/code> (154 MB): &lt;a href="https://pjreddie.com/media/files/darknet53.conv.74">darknet53.conv.74&lt;/a>&lt;/li>
&lt;li>for &lt;code>yolov3-tiny-prn.cfg , yolov3-tiny.cfg&lt;/code> (6 MB): &lt;a href="https://drive.google.com/file/d/18v36esoXCh-PsOKwyP2GWrpYDptDY8Zf/view?usp=sharing">yolov3-tiny.conv.11&lt;/a>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="reference">Reference&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>Tutorial from darknet repo: &lt;a href="https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects">How to train (to detect your custom objects)&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;a href="https://thebinarynotes.com/how-to-train-yolov3-custom-dataset/">How to train YOLOv3 on the custom dataset&lt;/a>&lt;/p>
&lt;/li>
&lt;/ul></description></item></channel></rss>