Glenn Jocher: What is New in YOLO v5?

Roboflow · Beginner ·👁️ Computer Vision ·5y ago

Key Takeaways

Glenn Jocher discusses the new features in YOLO v5, including auto anchor, which uses a genetic algorithm to automatically find optimal anchors for custom datasets, and mosaic augmentation, which improves object detection performance.

Full Transcript

[Music] i think you started ultralytics for similar motivations to why we started roboflow which is the writing is is there for making these technologies accessible and usable for any variety of industries being able to train a custom detector that works successfully to find airplane parts to sushi detection to solving board games there's an infinite number of things that we could detect and understand it's a question of making sure that's accessible to everyday people and so now with that with that context i think that that's a phenomenal segue into this is why you've put out yolo v5 and so i do want to mention so that in your v4 you're credited with a notable acknowledgement because you introduced mosaic augmentation which again is an augmentation technique that takes advantage of almost like copying and pasting portions of image on top of each other it's almost like a cut mix but for object detection is maybe a fair way of describing it and so i would love to hear i mean so the motivations for yolova are accessibility ease of training high quality performance quick inference speeds i'd love to hear a bit about what you think yolo v5 does for accessibility that you think other models in the yolo family might not yet do and then a bit about what's different and what's new yeah sure so on the accessibility front let's see so i can give you a nice example of that so one of the issues that i saw so in my yolo v3 repo i just started working on it by myself and when more and more people started noticing it and they started raising their issues when they tried to train their custom datasets and i noticed that a lot of these custom data sets have objects which are not quite under the same i guess distribution of aspect ratios that you see in the coco dataset which is what the models are typically trained on so i realized that a lot of people were training models with anchors they're called that were designed for a different data set so i started working on code to automatically allow you to fit new anchors to your data i worked on this for a while and i introduced this using a k-means method which was the standard method at the time and then i followed it up with a second stage which was an evolutionary algorithm a genetic algorithm which would take the result of the key means anchors i use those as an initial starting point and then of all your anchors through up to several thousand generations on the actual cost function that the model is going to be trained on so rather than then use the k-means function which has i guess like a limited subset of cost functions this would allow you to actually evolve the anchors using the same types of losses that we're going to be seeing in training so i thought this would work better and it did work better to a certain extent but it actually wasn't enough because this manual step was a bit complicated people had to take the results paste them into their model configuration files sometimes the order would get a little screwy so there's a lot of places to break this method that i developed so in yolob5 i actually took this a step further something i call auto anchor and what this does is when you load up your custom data set you start training without having to do anything the code will look at your anchors and it'll compare them against your data and if they don't fit well there's a determination that they fall below a certain matching threshold then it will just start training new anchors automatically using the same method it'll get some k means and initial guesses and then it'll evolve new anchors using a genetic algorithm and then it'll turn around and automatically place these new anchors back into your model and train the model and save the model with these new anchors so there's not a single thing you need to do so if somebody shows up and they have one of these special data sets where they're fitting like long rectangles or vertical rectangles then hopefully the new repository will handle that a lot better much more automatically and much more seamlessly than anything in the past that i've seen really so this is just an example of like one of the small steps i've taken in many different aspects to try and increase the robustness and i guess the out of the box results you can say from someone coming in and using this for the first time that's fantastic that and i mean makes so much sense i remember yellow v3 struggling and actually i did hey means to determine where my anchor should be not even thinking about the or noticing the genetic technique that you'd published for making that even more robust [Music]

Original Description

Glenn Jocher, the author of YOLO v5 and founder of Ultralytics, joined Roboflow for an interview. In this video, Glenn explains what is new in YOLOv5, including auto finding anchors with a genetic algorithm and accessibility. Subscribe to see more interviews: https://bit.ly/rf-yt-sub Read more about anchor boxes: https://blog.roboflow.ai/what-is-an-anchor-box/ More about Ultralytics: https://www.ultralytics.com/ Follow us on Twitter: https://twitter.com/roboflowAI
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Roboflow · Roboflow · 14 of 60

1 YOLOv3 PyTorch Notebook Tutorial
YOLOv3 PyTorch Notebook Tutorial
Roboflow
2 How to Train YOLOv4 on a Custom Dataset (PyTorch)
How to Train YOLOv4 on a Custom Dataset (PyTorch)
Roboflow
3 How to Train YOLOv5 on a Custom Dataset
How to Train YOLOv5 on a Custom Dataset
Roboflow
4 How to Use the Roboflow Dataset Health Check
How to Use the Roboflow Dataset Health Check
Roboflow
5 What is Mean Average Precision (mAP)?
What is Mean Average Precision (mAP)?
Roboflow
6 How to Use the Roboflow Model Library
How to Use the Roboflow Model Library
Roboflow
7 How to Train EfficientDet in TensorFlow 2 Object Detection
How to Train EfficientDet in TensorFlow 2 Object Detection
Roboflow
8 How to Train YOLO v4 Tiny (Darknet) on a Custom Dataset
How to Train YOLO v4 Tiny (Darknet) on a Custom Dataset
Roboflow
9 Ask the Roboflow Team Anything - Episode 1
Ask the Roboflow Team Anything - Episode 1
Roboflow
10 Exploring The COCO Dataset
Exploring The COCO Dataset
Roboflow
11 Community Spotlight: Improving Uno with Computer Vision
Community Spotlight: Improving Uno with Computer Vision
Roboflow
12 Mosaic Data Augmentation - Deep Dive
Mosaic Data Augmentation - Deep Dive
Roboflow
13 Hands on with the OAK-1
Hands on with the OAK-1
Roboflow
Glenn Jocher: What is New in YOLO v5?
Glenn Jocher: What is New in YOLO v5?
Roboflow
15 How to Use Amazon Rekognition Custom Labels and Roboflow to Build an Object Detection Model
How to Use Amazon Rekognition Custom Labels and Roboflow to Build an Object Detection Model
Roboflow
16 An Interview with Brandon Gilles, Luxonis Founder and OAK Chief Architect
An Interview with Brandon Gilles, Luxonis Founder and OAK Chief Architect
Roboflow
17 How to Train a Custom Mobile Object Detection Model (with YOLOv4 Tiny and TensorFlow Lite)
How to Train a Custom Mobile Object Detection Model (with YOLOv4 Tiny and TensorFlow Lite)
Roboflow
18 Tackling the Small Object Problem in Object Detection
Tackling the Small Object Problem in Object Detection
Roboflow
19 Fast.ai v2 Released - What's New?
Fast.ai v2 Released - What's New?
Roboflow
20 Teaser: Roboflow Train (1-Click Computer Vision AutoML)
Teaser: Roboflow Train (1-Click Computer Vision AutoML)
Roboflow
21 How to Train a Custom Resnet34 Image Classification Model
How to Train a Custom Resnet34 Image Classification Model
Roboflow
22 How to Label Images for Object Detection with CVAT
How to Label Images for Object Detection with CVAT
Roboflow
23 Deploy YOLOv5 to Jetson Xavier NX at 30 FPS
Deploy YOLOv5 to Jetson Xavier NX at 30 FPS
Roboflow
24 Elisha Odemakinde Hosts Roboflow ML Engineer, Jacob Solawetz
Elisha Odemakinde Hosts Roboflow ML Engineer, Jacob Solawetz
Roboflow
25 Getting Started with VoTT - Computer Vision Annotation
Getting Started with VoTT - Computer Vision Annotation
Roboflow
26 How to Manage Classes in Object Detection (Rename, Combine, Balance)
How to Manage Classes in Object Detection (Rename, Combine, Balance)
Roboflow
27 How to Train YOLOv4 on a Custom Dataset in Darknet
How to Train YOLOv4 on a Custom Dataset in Darknet
Roboflow
28 Is Grayscale a Preprocessing or Augmentation Step in Computer Vision?
Is Grayscale a Preprocessing or Augmentation Step in Computer Vision?
Roboflow
29 Getting Started with Image Data Augmentation
Getting Started with Image Data Augmentation
Roboflow
30 Glenn Jocher: Image Augmentation in YOLO v5 and Beyond
Glenn Jocher: Image Augmentation in YOLO v5 and Beyond
Roboflow
31 GA Hosts Roboflow - Healthcare and AI
GA Hosts Roboflow - Healthcare and AI
Roboflow
32 How do self driving cars know when to stop?
How do self driving cars know when to stop?
Roboflow
33 What is PASCAL VOC XML?
What is PASCAL VOC XML?
Roboflow
34 AutoML Showdown: Google vs Amazon vs Microsoft
AutoML Showdown: Google vs Amazon vs Microsoft
Roboflow
35 How is computer vision changing manufacturing?
How is computer vision changing manufacturing?
Roboflow
36 The Alphabet in American Sign Language
The Alphabet in American Sign Language
Roboflow
37 Luxonis OAK-D: Computer Vision on Device
Luxonis OAK-D: Computer Vision on Device
Roboflow
38 How to Train a Custom Faster R-CNN Model with Facebook AI's Detectron2 | Use Your Own Dataset
How to Train a Custom Faster R-CNN Model with Facebook AI's Detectron2 | Use Your Own Dataset
Roboflow
39 TensorFlow vs PyTorch: Fireside
TensorFlow vs PyTorch: Fireside
Roboflow
40 Occlusion Techniques in Computer Vision
Occlusion Techniques in Computer Vision
Roboflow
41 A Customizable Web Application for Your Computer Vision Model
A Customizable Web Application for Your Computer Vision Model
Roboflow
42 Model Tradeoffs and the Future of Computer Vision
Model Tradeoffs and the Future of Computer Vision
Roboflow
43 Designing an Augmented Reality Board Game App
Designing an Augmented Reality Board Game App
Roboflow
44 YOLOv4 - Advanced Tactics
YOLOv4 - Advanced Tactics
Roboflow
45 How to Use CreateML and Build a Computer Vision iPhone App | AR Object Detection
How to Use CreateML and Build a Computer Vision iPhone App | AR Object Detection
Roboflow
46 Fireside Chat: Computer Vision in Agriculture
Fireside Chat: Computer Vision in Agriculture
Roboflow
47 Scaled-YOLOv4 Tops EfficientDet: Research Rundown
Scaled-YOLOv4 Tops EfficientDet: Research Rundown
Roboflow
48 What is Image Preprocessing?
What is Image Preprocessing?
Roboflow
49 Building a Community of Creators with BlkArthouse and Von Deon
Building a Community of Creators with BlkArthouse and Von Deon
Roboflow
50 How to Train Scaled-YOLOv4 to Detect Custom Objects
How to Train Scaled-YOLOv4 to Detect Custom Objects
Roboflow
51 Intro to Computer Vision: Fireside
Intro to Computer Vision: Fireside
Roboflow
52 The Best Way to Annotate Images for Object Detection
The Best Way to Annotate Images for Object Detection
Roboflow
53 The Computer Vision Process: Fireside
The Computer Vision Process: Fireside
Roboflow
54 How to Annotate Images with Your Team Using Roboflow
How to Annotate Images with Your Team Using Roboflow
Roboflow
55 Introducing the Roboflow Object Count Histogram
Introducing the Roboflow Object Count Histogram
Roboflow
56 How Fast is the M1 at Machine Learning? Benchmarking Apple's M1 and Intel's Chips
How Fast is the M1 at Machine Learning? Benchmarking Apple's M1 and Intel's Chips
Roboflow
57 CLIP: OpenAI's amazing new zero-shot image classifier
CLIP: OpenAI's amazing new zero-shot image classifier
Roboflow
58 How I hacked my Nest camera to run custom models
How I hacked my Nest camera to run custom models
Roboflow
59 Getting Started with the Roboflow Inference API
Getting Started with the Roboflow Inference API
Roboflow
60 Transfer Learning in Computer Vision | What, How, Why
Transfer Learning in Computer Vision | What, How, Why
Roboflow

YOLO v5 introduces auto anchor, a feature that automatically finds optimal anchor boxes for custom datasets using a genetic algorithm, making it easier to train object detection models. The video discusses the motivations behind YOLO v5 and its new features.

Key Takeaways
  1. Load custom dataset
  2. Start training without configuring anchor boxes
  3. Auto anchor automatically finds optimal anchor boxes using a genetic algorithm
  4. Train model with new anchor boxes
  5. Evaluate model performance
💡 Auto anchor in YOLO v5 simplifies the process of finding optimal anchor boxes for custom datasets, making it more accessible to users without extensive experience in object detection.

Related Reads

Up next
9-Phase Computer Vision Roadmap 2026 | AI & Deep Learning | #shorts
SCALER
Watch →