UltralyticsYOLOv8 is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. YOLOv8 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of object detection and tracking, instance segmentation, image classification and pose estimation tasks.
We hope that the resources here will help you get the most out of YOLOv8. Please browse the YOLOv8 Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions!
See below for a quickstart installation and usage example, and see the YOLOv8 Docs for full documentation on training, validation, prediction and deployment.
yolo can be used for a variety of tasks and modes and accepts additional arguments, i.e. imgsz=640. See the YOLOv8 CLI Docs for examples.
Python
YOLOv8 may also be used directly in a Python environment, and accepts the same arguments as in the CLI example above:
from ultralytics import YOLO
# Load a model
model = YOLO("yolov8n.yaml") # build a new model from scratch
model = YOLO("yolov8n.pt") # load a pretrained model (recommended for training)
# Use the model
model.train(data="coco128.yaml", epochs=3) # train the model
metrics = model.val() # evaluate model performance on the validation set
results = model("https://ultralytics.com/images/bus.jpg") # predict on an image
path = model.export(format="onnx") # export the model to ONNX format
YOLOv8 Detect, Segment and Pose models pretrained on the COCO dataset are available here, as well as YOLOv8 Classify models pretrained on the ImageNet dataset. Track mode is available for all Detect, Segment and Pose models.
All Models download automatically from the latest Ultralytics release on first use.
Detection (COCO)
See Detection Docs for usage examples with these models trained on COCO, which include 80 pre-trained classes.
mAPval values are for single-model single-scale on Open Image V7 dataset. Reproduce by yolo val detect data=open-images-v7.yaml device=0
Speed averaged over Open Image V7 val images using an Amazon EC2 P4d instance. Reproduce by yolo val detect data=open-images-v7.yaml batch=1 device=0|cpu
Segmentation (COCO)
See Segmentation Docs for usage examples with these models trained on COCO-Seg, which include 80 pre-trained classes.
acc values are model accuracies on the ImageNet dataset validation set. Reproduce by yolo val classify data=path/to/ImageNet device=0
Speed averaged over ImageNet val images using an Amazon EC2 P4d instance. Reproduce by yolo val classify data=path/to/ImageNet batch=1 device=0|cpu
Integrations
Our key integrations with leading AI platforms extend the functionality of Ultralytics’ offerings, enhancing tasks like dataset labeling, training, visualization, and model management. Discover how Ultralytics, in collaboration with Roboflow, ClearML, Comet, Neural Magic and OpenVINO, can optimize your AI workflow.
Roboflow
ClearML ⭐ NEW
Comet ⭐ NEW
Neural Magic ⭐ NEW
Label and export your custom datasets directly to YOLOv8 for training with Roboflow
Automatically track, visualize and even remotely train YOLOv8 using ClearML (open-source!)
Free forever, Comet lets you save YOLOv8 models, resume training, and interactively visualize and debug predictions
Experience seamless AI with Ultralytics HUB ⭐, the all-in-one solution for data visualization, YOLOv5 and YOLOv8 🚀 model training and deployment, without any coding. Transform images into actionable insights and bring your AI visions to life with ease using our cutting-edge platform and user-friendly Ultralytics App. Start your journey for Free now!
Contribute
We love your input! YOLOv5 and YOLOv8 would not be possible without help from our community. Please see our Contributing Guide to get started, and fill out our Survey to send us feedback on your experience. Thank you 🙏 to all our contributors!
License
Ultralytics offers two licensing options to accommodate diverse use cases:
AGPL-3.0 License: This OSI-approved open-source license is ideal for students and enthusiasts, promoting open collaboration and knowledge sharing. See the LICENSE file for more details.
Enterprise License: Designed for commercial use, this license permits seamless integration of Ultralytics software and AI models into commercial goods and services, bypassing the open-source requirements of AGPL-3.0. If your scenario involves embedding our solutions into a commercial offering, reach out through Ultralytics Licensing.
Contact
For Ultralytics bug reports and feature requests please visit GitHub Issues, and join our Discord community for questions and discussions!
中文 | 한국어 | 日本語 | Русский | Deutsch | Français | Español | Português | हिन्दी | العربية
Ultralytics YOLOv8 is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. YOLOv8 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of object detection and tracking, instance segmentation, image classification and pose estimation tasks.
We hope that the resources here will help you get the most out of YOLOv8. Please browse the YOLOv8 Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions!
To request an Enterprise License please complete the form at Ultralytics Licensing.
See below for a quickstart installation and usage example, and see the YOLOv8 Docs for full documentation on training, validation, prediction and deployment.
Install
Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
For alternative installation methods including Conda, Docker, and Git, please refer to the Quickstart Guide.
Usage
CLI
YOLOv8 may be used directly in the Command Line Interface (CLI) with a
yolo
command:yolo
can be used for a variety of tasks and modes and accepts additional arguments, i.e.imgsz=640
. See the YOLOv8 CLI Docs for examples.Python
YOLOv8 may also be used directly in a Python environment, and accepts the same arguments as in the CLI example above:
See YOLOv8 Python Docs for more examples.
YOLOv8 Detect, Segment and Pose models pretrained on the COCO dataset are available here, as well as YOLOv8 Classify models pretrained on the ImageNet dataset. Track mode is available for all Detect, Segment and Pose models.
All Models download automatically from the latest Ultralytics release on first use.
Detection (COCO)
See Detection Docs for usage examples with these models trained on COCO, which include 80 pre-trained classes.
(pixels)
50-95
CPU ONNX
(ms)
A100 TensorRT
(ms)
(M)
(B)
Reproduce by
yolo val detect data=coco.yaml device=0
Reproduce by
yolo val detect data=coco.yaml batch=1 device=0|cpu
Detection (Open Image V7)
See Detection Docs for usage examples with these models trained on Open Image V7, which include 600 pre-trained classes.
(pixels)
50-95
CPU ONNX
(ms)
A100 TensorRT
(ms)
(M)
(B)
Reproduce by
yolo val detect data=open-images-v7.yaml device=0
Reproduce by
yolo val detect data=open-images-v7.yaml batch=1 device=0|cpu
Segmentation (COCO)
See Segmentation Docs for usage examples with these models trained on COCO-Seg, which include 80 pre-trained classes.
(pixels)
50-95
50-95
CPU ONNX
(ms)
A100 TensorRT
(ms)
(M)
(B)
Reproduce by
yolo val segment data=coco-seg.yaml device=0
Reproduce by
yolo val segment data=coco-seg.yaml batch=1 device=0|cpu
Pose (COCO)
See Pose Docs for usage examples with these models trained on COCO-Pose, which include 1 pre-trained class, person.
(pixels)
50-95
50
CPU ONNX
(ms)
A100 TensorRT
(ms)
(M)
(B)
Reproduce by
yolo val pose data=coco-pose.yaml device=0
Reproduce by
yolo val pose data=coco-pose.yaml batch=1 device=0|cpu
Classification (ImageNet)
See Classification Docs for usage examples with these models trained on ImageNet, which include 1000 pretrained classes.
(pixels)
top1
top5
CPU ONNX
(ms)
A100 TensorRT
(ms)
(M)
(B) at 640
Reproduce by
yolo val classify data=path/to/ImageNet device=0
Reproduce by
yolo val classify data=path/to/ImageNet batch=1 device=0|cpu
Our key integrations with leading AI platforms extend the functionality of Ultralytics’ offerings, enhancing tasks like dataset labeling, training, visualization, and model management. Discover how Ultralytics, in collaboration with Roboflow, ClearML, Comet, Neural Magic and OpenVINO, can optimize your AI workflow.
Experience seamless AI with Ultralytics HUB ⭐, the all-in-one solution for data visualization, YOLOv5 and YOLOv8 🚀 model training and deployment, without any coding. Transform images into actionable insights and bring your AI visions to life with ease using our cutting-edge platform and user-friendly Ultralytics App. Start your journey for Free now!
We love your input! YOLOv5 and YOLOv8 would not be possible without help from our community. Please see our Contributing Guide to get started, and fill out our Survey to send us feedback on your experience. Thank you 🙏 to all our contributors!
Ultralytics offers two licensing options to accommodate diverse use cases:
For Ultralytics bug reports and feature requests please visit GitHub Issues, and join our Discord community for questions and discussions!