Update YOLO11 Actions and Docs (#16596)
Signed-off-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
51e93d6111
commit
97f38409fb
124 changed files with 1948 additions and 1948 deletions
|
|
@ -108,8 +108,8 @@ To train a model on the DOTA v1 dataset, you can utilize the following code snip
|
|||
```python
|
||||
from ultralytics import YOLO
|
||||
|
||||
# Create a new YOLOv8n-OBB model from scratch
|
||||
model = YOLO("yolov8n-obb.yaml")
|
||||
# Create a new YOLO11n-OBB model from scratch
|
||||
model = YOLO("yolo11n-obb.yaml")
|
||||
|
||||
# Train the model on the DOTAv1 dataset
|
||||
results = model.train(data="DOTAv1.yaml", epochs=100, imgsz=1024)
|
||||
|
|
@ -118,8 +118,8 @@ To train a model on the DOTA v1 dataset, you can utilize the following code snip
|
|||
=== "CLI"
|
||||
|
||||
```bash
|
||||
# Train a new YOLOv8n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolov8n-obb.pt epochs=100 imgsz=1024
|
||||
# Train a new YOLO11n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolo11n-obb.pt epochs=100 imgsz=1024
|
||||
```
|
||||
|
||||
## Sample Data and Annotations
|
||||
|
|
@ -176,8 +176,8 @@ To train a model on the DOTA dataset, you can use the following example with Ult
|
|||
```python
|
||||
from ultralytics import YOLO
|
||||
|
||||
# Create a new YOLOv8n-OBB model from scratch
|
||||
model = YOLO("yolov8n-obb.yaml")
|
||||
# Create a new YOLO11n-OBB model from scratch
|
||||
model = YOLO("yolo11n-obb.yaml")
|
||||
|
||||
# Train the model on the DOTAv1 dataset
|
||||
results = model.train(data="DOTAv1.yaml", epochs=100, imgsz=1024)
|
||||
|
|
@ -186,8 +186,8 @@ To train a model on the DOTA dataset, you can use the following example with Ult
|
|||
=== "CLI"
|
||||
|
||||
```bash
|
||||
# Train a new YOLOv8n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolov8n-obb.pt epochs=100 imgsz=1024
|
||||
# Train a new YOLO11n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolo11n-obb.pt epochs=100 imgsz=1024
|
||||
```
|
||||
|
||||
For more details on how to split and preprocess the DOTA images, refer to the [split DOTA images section](#split-dota-images).
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
comments: true
|
||||
description: Explore the DOTA8 dataset - a small, versatile oriented object detection dataset ideal for testing and debugging object detection models using Ultralytics YOLOv8.
|
||||
keywords: DOTA8 dataset, Ultralytics, YOLOv8, object detection, debugging, training models, oriented object detection, dataset YAML
|
||||
description: Explore the DOTA8 dataset - a small, versatile oriented object detection dataset ideal for testing and debugging object detection models using Ultralytics YOLO11.
|
||||
keywords: DOTA8 dataset, Ultralytics, YOLO11, object detection, debugging, training models, oriented object detection, dataset YAML
|
||||
---
|
||||
|
||||
# DOTA8 Dataset
|
||||
|
|
@ -10,7 +10,7 @@ keywords: DOTA8 dataset, Ultralytics, YOLOv8, object detection, debugging, train
|
|||
|
||||
[Ultralytics](https://www.ultralytics.com/) DOTA8 is a small, but versatile oriented [object detection](https://www.ultralytics.com/glossary/object-detection) dataset composed of the first 8 images of 8 images of the split DOTAv1 set, 4 for training and 4 for validation. This dataset is ideal for testing and debugging object detection models, or for experimenting with new detection approaches. With 8 images, it is small enough to be easily manageable, yet diverse enough to test training pipelines for errors and act as a sanity check before training larger datasets.
|
||||
|
||||
This dataset is intended for use with Ultralytics [HUB](https://hub.ultralytics.com/) and [YOLOv8](https://github.com/ultralytics/ultralytics).
|
||||
This dataset is intended for use with Ultralytics [HUB](https://hub.ultralytics.com/) and [YOLO11](https://github.com/ultralytics/ultralytics).
|
||||
|
||||
## Dataset YAML
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ A YAML (Yet Another Markup Language) file is used to define the dataset configur
|
|||
|
||||
## Usage
|
||||
|
||||
To train a YOLOv8n-obb model on the DOTA8 dataset for 100 [epochs](https://www.ultralytics.com/glossary/epoch) with an image size of 640, you can use the following code snippets. For a comprehensive list of available arguments, refer to the model [Training](../../modes/train.md) page.
|
||||
To train a YOLO11n-obb model on the DOTA8 dataset for 100 [epochs](https://www.ultralytics.com/glossary/epoch) with an image size of 640, you can use the following code snippets. For a comprehensive list of available arguments, refer to the model [Training](../../modes/train.md) page.
|
||||
|
||||
!!! example "Train Example"
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ To train a YOLOv8n-obb model on the DOTA8 dataset for 100 [epochs](https://www.u
|
|||
from ultralytics import YOLO
|
||||
|
||||
# Load a model
|
||||
model = YOLO("yolov8n-obb.pt") # load a pretrained model (recommended for training)
|
||||
model = YOLO("yolo11n-obb.pt") # load a pretrained model (recommended for training)
|
||||
|
||||
# Train the model
|
||||
results = model.train(data="dota8.yaml", epochs=100, imgsz=640)
|
||||
|
|
@ -44,7 +44,7 @@ To train a YOLOv8n-obb model on the DOTA8 dataset for 100 [epochs](https://www.u
|
|||
|
||||
```bash
|
||||
# Start training from a pretrained *.pt model
|
||||
yolo obb train data=dota8.yaml model=yolov8n-obb.pt epochs=100 imgsz=640
|
||||
yolo obb train data=dota8.yaml model=yolo11n-obb.pt epochs=100 imgsz=640
|
||||
```
|
||||
|
||||
## Sample Images and Annotations
|
||||
|
|
@ -84,11 +84,11 @@ A special note of gratitude to the team behind the DOTA datasets for their comme
|
|||
|
||||
### What is the DOTA8 dataset and how can it be used?
|
||||
|
||||
The DOTA8 dataset is a small, versatile oriented object detection dataset made up of the first 8 images from the DOTAv1 split set, with 4 images designated for training and 4 for validation. It's ideal for testing and debugging object detection models like Ultralytics YOLOv8. Due to its manageable size and diversity, it helps in identifying pipeline errors and running sanity checks before deploying larger datasets. Learn more about object detection with [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics).
|
||||
The DOTA8 dataset is a small, versatile oriented object detection dataset made up of the first 8 images from the DOTAv1 split set, with 4 images designated for training and 4 for validation. It's ideal for testing and debugging object detection models like Ultralytics YOLO11. Due to its manageable size and diversity, it helps in identifying pipeline errors and running sanity checks before deploying larger datasets. Learn more about object detection with [Ultralytics YOLO11](https://github.com/ultralytics/ultralytics).
|
||||
|
||||
### How do I train a YOLOv8 model using the DOTA8 dataset?
|
||||
### How do I train a YOLO11 model using the DOTA8 dataset?
|
||||
|
||||
To train a YOLOv8n-obb model on the DOTA8 dataset for 100 epochs with an image size of 640, you can use the following code snippets. For comprehensive argument options, refer to the model [Training](../../modes/train.md) page.
|
||||
To train a YOLO11n-obb model on the DOTA8 dataset for 100 epochs with an image size of 640, you can use the following code snippets. For comprehensive argument options, refer to the model [Training](../../modes/train.md) page.
|
||||
|
||||
!!! example "Train Example"
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ To train a YOLOv8n-obb model on the DOTA8 dataset for 100 epochs with an image s
|
|||
from ultralytics import YOLO
|
||||
|
||||
# Load a model
|
||||
model = YOLO("yolov8n-obb.pt") # load a pretrained model (recommended for training)
|
||||
model = YOLO("yolo11n-obb.pt") # load a pretrained model (recommended for training)
|
||||
|
||||
# Train the model
|
||||
results = model.train(data="dota8.yaml", epochs=100, imgsz=640)
|
||||
|
|
@ -108,7 +108,7 @@ To train a YOLOv8n-obb model on the DOTA8 dataset for 100 epochs with an image s
|
|||
|
||||
```bash
|
||||
# Start training from a pretrained *.pt model
|
||||
yolo obb train data=dota8.yaml model=yolov8n-obb.pt epochs=100 imgsz=640
|
||||
yolo obb train data=dota8.yaml model=yolo11n-obb.pt epochs=100 imgsz=640
|
||||
```
|
||||
|
||||
### What are the key features of the DOTA dataset and where can I access the YAML file?
|
||||
|
|
@ -119,6 +119,6 @@ The DOTA dataset is known for its large-scale benchmark and the challenges it pr
|
|||
|
||||
Mosaicing combines multiple images into one during training, increasing the variety of objects and contexts within each batch. This improves a model's ability to generalize to different object sizes, aspect ratios, and scenes. This technique can be visually demonstrated through a training batch composed of mosaiced DOTA8 dataset images, helping in robust model development. Explore more about mosaicing and training techniques on our [Training](../../modes/train.md) page.
|
||||
|
||||
### Why should I use Ultralytics YOLOv8 for object detection tasks?
|
||||
### Why should I use Ultralytics YOLO11 for object detection tasks?
|
||||
|
||||
Ultralytics YOLOv8 provides state-of-the-art real-time object detection capabilities, including features like oriented bounding boxes (OBB), [instance segmentation](https://www.ultralytics.com/glossary/instance-segmentation), and a highly versatile training pipeline. It's suitable for various applications and offers pretrained models for efficient fine-tuning. Explore further about the advantages and usage in the [Ultralytics YOLOv8 documentation](https://github.com/ultralytics/ultralytics).
|
||||
Ultralytics YOLO11 provides state-of-the-art real-time object detection capabilities, including features like oriented bounding boxes (OBB), [instance segmentation](https://www.ultralytics.com/glossary/instance-segmentation), and a highly versatile training pipeline. It's suitable for various applications and offers pretrained models for efficient fine-tuning. Explore further about the advantages and usage in the [Ultralytics YOLO11 documentation](https://github.com/ultralytics/ultralytics).
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ To train a model using these OBB formats:
|
|||
```python
|
||||
from ultralytics import YOLO
|
||||
|
||||
# Create a new YOLOv8n-OBB model from scratch
|
||||
model = YOLO("yolov8n-obb.yaml")
|
||||
# Create a new YOLO11n-OBB model from scratch
|
||||
model = YOLO("yolo11n-obb.yaml")
|
||||
|
||||
# Train the model on the DOTAv1 dataset
|
||||
results = model.train(data="DOTAv1.yaml", epochs=100, imgsz=1024)
|
||||
|
|
@ -49,8 +49,8 @@ To train a model using these OBB formats:
|
|||
=== "CLI"
|
||||
|
||||
```bash
|
||||
# Train a new YOLOv8n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolov8n-obb.pt epochs=100 imgsz=1024
|
||||
# Train a new YOLO11n-OBB model on the DOTAv1 dataset
|
||||
yolo obb train data=DOTAv1.yaml model=yolo11n-obb.pt epochs=100 imgsz=1024
|
||||
```
|
||||
|
||||
## Supported Datasets
|
||||
|
|
@ -92,7 +92,7 @@ It's imperative to validate the compatibility of the dataset with your model and
|
|||
|
||||
Oriented Bounding Boxes (OBB) are a type of bounding box annotation where the box can be rotated to align more closely with the object being detected, rather than just being axis-aligned. This is particularly useful in aerial or satellite imagery where objects might not be aligned with the image axes. In Ultralytics YOLO models, OBBs are represented by their four corner points in the YOLO OBB format. This allows for more accurate object detection since the bounding boxes can rotate to fit the objects better.
|
||||
|
||||
### How do I convert my existing DOTA dataset labels to YOLO OBB format for use with Ultralytics YOLOv8?
|
||||
### How do I convert my existing DOTA dataset labels to YOLO OBB format for use with Ultralytics YOLO11?
|
||||
|
||||
You can convert DOTA dataset labels to YOLO OBB format using the `convert_dota_to_yolo_obb` function from Ultralytics. This conversion ensures compatibility with the Ultralytics YOLO models, enabling you to leverage the OBB capabilities for enhanced object detection. Here's a quick example:
|
||||
|
||||
|
|
@ -104,9 +104,9 @@ convert_dota_to_yolo_obb("path/to/DOTA")
|
|||
|
||||
This script will reformat your DOTA annotations into a YOLO-compatible format.
|
||||
|
||||
### How do I train a YOLOv8 model with oriented bounding boxes (OBB) on my dataset?
|
||||
### How do I train a YOLO11 model with oriented bounding boxes (OBB) on my dataset?
|
||||
|
||||
Training a YOLOv8 model with OBBs involves ensuring your dataset is in the YOLO OBB format and then using the Ultralytics API to train the model. Here's an example in both Python and CLI:
|
||||
Training a YOLO11 model with OBBs involves ensuring your dataset is in the YOLO OBB format and then using the Ultralytics API to train the model. Here's an example in both Python and CLI:
|
||||
|
||||
!!! example
|
||||
|
||||
|
|
@ -115,8 +115,8 @@ Training a YOLOv8 model with OBBs involves ensuring your dataset is in the YOLO
|
|||
```python
|
||||
from ultralytics import YOLO
|
||||
|
||||
# Create a new YOLOv8n-OBB model from scratch
|
||||
model = YOLO("yolov8n-obb.yaml")
|
||||
# Create a new YOLO11n-OBB model from scratch
|
||||
model = YOLO("yolo11n-obb.yaml")
|
||||
|
||||
# Train the model on the custom dataset
|
||||
results = model.train(data="your_dataset.yaml", epochs=100, imgsz=640)
|
||||
|
|
@ -125,8 +125,8 @@ Training a YOLOv8 model with OBBs involves ensuring your dataset is in the YOLO
|
|||
=== "CLI"
|
||||
|
||||
```bash
|
||||
# Train a new YOLOv8n-OBB model on the custom dataset
|
||||
yolo obb train data=your_dataset.yaml model=yolov8n-obb.yaml epochs=100 imgsz=640
|
||||
# Train a new YOLO11n-OBB model on the custom dataset
|
||||
yolo obb train data=your_dataset.yaml model=yolo11n-obb.yaml epochs=100 imgsz=640
|
||||
```
|
||||
|
||||
This ensures your model leverages the detailed OBB annotations for improved detection [accuracy](https://www.ultralytics.com/glossary/accuracy).
|
||||
|
|
@ -142,6 +142,6 @@ Currently, Ultralytics supports the following datasets for OBB training:
|
|||
|
||||
These datasets are tailored for scenarios where OBBs offer a significant advantage, such as aerial and satellite image analysis.
|
||||
|
||||
### Can I use my own dataset with oriented bounding boxes for YOLOv8 training, and if so, how?
|
||||
### Can I use my own dataset with oriented bounding boxes for YOLO11 training, and if so, how?
|
||||
|
||||
Yes, you can use your own dataset with oriented bounding boxes for YOLOv8 training. Ensure your dataset annotations are converted to the YOLO OBB format, which involves defining bounding boxes by their four corner points. You can then create a YAML configuration file specifying the dataset paths, classes, and other necessary details. For more information on creating and configuring your datasets, refer to the [Supported Datasets](#supported-datasets) section.
|
||||
Yes, you can use your own dataset with oriented bounding boxes for YOLO11 training. Ensure your dataset annotations are converted to the YOLO OBB format, which involves defining bounding boxes by their four corner points. You can then create a YAML configuration file specifying the dataset paths, classes, and other necessary details. For more information on creating and configuring your datasets, refer to the [Supported Datasets](#supported-datasets) section.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue