Ultralytics supports many models and architectures with more to come in the future. Want to add your model architecture? Here's how you can contribute.
In this documentation, we provide information on four major models:
- YOLOv3: The third iteration of the YOLO model family, known for its efficient real-time object detection capabilities.
- YOLOv5: An improved version of the YOLO architecture, offering better performance and speed tradeoffs compared to previous versions.
- YOLOv6: Released by Meituan in 2022 and is in use in many of the company's autonomous delivery robots.
- YOLOv8: The latest version of the YOLO family, featuring enhanced capabilities such as instance segmentation, pose/keypoints estimation, and classification.
- Segment Anything Model (SAM): Meta's Segment Anything Model (SAM).
- Realtime Detection Transformers (RT-DETR): Baidu's RT-DETR model.
You can use these models directly in the Command Line Interface (CLI) or in a Python environment. Below are examples of how to use the models with CLI and Python:
from ultralytics import YOLO model = YOLO("model.yaml") # build a YOLOv8n model from scratch # YOLO("model.pt") use pre-trained model if available model.info() # display model information model.train(data="coco128.yaml", epochs=100) # train the model
For more details on each model, their supported tasks, modes, and performance, please visit their respective documentation pages linked above.
Created 2023-04-29, Updated 2023-05-25
Authors: Glenn Jocher (5)