Simplifying Classification Workflows With Ultralytics YOLOv5 v6.2
Discover the new YOLOv5 v6.2 release with classification models, ClearML integration, GPU benchmarks, training reproducibility, and more.
Nuvola Ladi3 min readListen to this article

YOLOv5 continues to push the state of the art in object detection. From new classification models, training reproducibility, and Apple Metal Performance Shader (MPS) support to integrations with ClearML and Deci, here is what's new in the YOLOv5 v6.2 release.
Important Ultralytics YOLOv5 Updates#
We’ve been working on improving YOLOv5 since our previous release in February 2022. These are the most important updates in the latest YOLOv5 v6.2:
- Classification Models: Ultralytics YOLOv5-cls ImageNet-pretrained image classification models are now available for the first time.
- ClearML logging: Integration with the open-source experiment tracker ClearML. Installing with
pip install clearmlwill enable the integration and allow users to track every training run in ClearML. This in turn allows users to track and compare runs and even schedule runs remotely. - GPU Export Benchmarks: Benchmark (mAP and speed) all YOLOv5 export formats with
python utils/benchmarks.py --weights yolov5s.pt --device 0for GPU benchmarks or--device cpufor CPU benchmarks. - Training Reproducibility: Single-GPU Ultralytics YOLOv5 training with
torch>=1.12.0is now fully reproducible, and a new--seedargument can be used (defaultseed=0). - Apple Metal Performance Shader (MPS) Support: MPS support for Apple M1/M2 devices with
--device mps(full functionality is pending torch updates in pytorch/pytorch#77764).

New Classification Models#
Our main goal with this release is to introduce simple YOLOv5 classification workflows, just like our existing object detection models. The new v6.2 YOLOv5-cls models are just a start; we will continue to improve these going forward together with our existing detection models. We'd love your contributions to this effort!
This release incorporates 401 PRs from 41 contributors since our last release in February 2022. It adds Classification training, validation, prediction and export (to all 11 formats), and also provides ImageNet-pretrained YOLOv5m-cls, ResNet (18, 34, 50, 101) and EfficientNet (b0-b3) models.
We trained Ultralytics YOLOv5-cls classification models on ImageNet for 90 epochs using a 4xA100 instance, and we trained ResNet and EfficientNet models alongside them with the same default training settings to compare. We exported all models to ONNX FP32 for CPU speed tests and to TensorRT FP16 for GPU speed tests. We ran all speed tests on Google Colab Pro for easy reproducibility.
What's Next From Ultralytics?#
Our next release, v6.3, is scheduled for September 2022 and will bring official instance segmentation support to Ultralytics YOLOv5, with a major v7.0 release later this year updating architectures across all 3 tasks - detection, segmentation, and classification. (Instance segmentation ultimately arrived in YOLOv5 v7.0.)
Visit our YOLOv5 open-source GitHub repository to stay up to date and find out more about this release.
Written by
Comments
Ask a question, share your results, or help someone else.










