vision
image-detection
File size: 6,465 Bytes
2280459
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc095da
2280459
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
---
license: agpl-3.0
tags:
- vision
- image-detection
datasets:
- COCO
---

<div align="center">

# YOLOv8 for TI EdgeAI

### Real-Time Anchor-Free Object Detector

[![License](https://img.shields.io/badge/License-AGPL%203.0-blue?style=for-the-badge)](https://opensource.org/licenses/AGPL-3.0)
[![Framework](https://img.shields.io/badge/Framework-ONNX-orange?style=for-the-badge)](https://onnx.ai/)
[![Task](https://img.shields.io/badge/Task-Object%20Detection-green?style=for-the-badge)](https://github.com/TexasInstruments/edgeai)
[![Dataset](https://img.shields.io/badge/Dataset-COCO-blueviolet?style=for-the-badge)](https://cocodataset.org/)

</div>

---

## Overview

**YOLOv8** is Ultralytics' real-time object detector, building on the advancements of previous YOLO versions with an **anchor-free split Ultralytics head** design that improves accuracy and speeds up the detection process compared to earlier anchor-based approaches. It combines a state-of-the-art backbone and neck architecture for improved feature extraction with an optimized accuracy-speed trade-off, making it suitable for real-time detection across a wide range of applications.

YOLOv8 is offered in five size variants — n, s, m, l, x — spanning a wide accuracy-speed trade-off, from resource-constrained edge devices up to high-throughput deployments. This model is optimized for **Texas Instruments MPU (Microprocessor Unit) devices**, targeting edge computer vision use cases such as industrial automation, smart cameras, robotics, and IoT vision.

---

## Model Variants

| Model | Params (M) | Input Size | Reference mAP[.5:.95]% | Validated Devices | Config |
|-------|------------|------------|--------------|--------------------|--------|
| `yolov8n` | 3.2 | 640×640 | 37.3 | TDA4VH, TDA4VL, TDA4AEN | [yolov8n_config.yaml](yolov8n_config.yaml) |
| `yolov8s` | 11.2 | 640×640 | 44.9 | N/A | N/A |
| `yolov8m` | 25.9 | 640×640 | 50.2 | TDA4VH, TDA4VL | [yolov8m_config.yaml](yolov8m_config.yaml) |
| `yolov8l` | 43.7 | 640×640 | 52.9 | N/A | N/A |
| `yolov8x` | 68.2 | 640×640 | 53.9 | N/A | N/A |

**Recommended for edge deployment:** `yolov8n` (best accuracy/compute trade-off, smallest footprint)

---

## Quick Start

### Prerequisites

```bash
pip install onnx>=1.22.0
pip install onnxruntime>=1.23.2
pip install ultralytics
```

For TI hardware deployment, also set up **[tidlrunner](https://github.com/TexasInstruments/edgeai-tidlrunner/blob/main/README.md)**.

If accessing this model from HuggingFace, clone the repository using the `hf` CLI:

```bash
hf download <REPO_ID> --local-dir <download_location>
```

### Export the Model

```bash
# Export the default model (yolov8n)
python prepare_model.py

# Export specific variants
python prepare_model.py --models yolov8n yolov8m

# Export all variants
python prepare_model.py --models all

# List all supported variants
python prepare_model.py --list-models

# Export with a custom output directory or export format
python prepare_model.py --models yolov8n --output-dir ./exports --format onnx
```

The script automatically:
- Installs required runtime dependencies (`onnx`, `ultralytics`, `onnxslim`, `onnxruntime`)
- Loads the requested Ultralytics YOLOv8 checkpoint (`.pt`), downloading it on first use
- Exports the model to ONNX (opset 19 by default, configurable via `--opset`)
- Supports alternate export formats (`torchscript`, `tflite`, `pb`, `saved_model`, `coreml`, and more) via `--format`

### Compile and Infer uing edgeai-tidlrunner

> **Note:** Run the commands below from inside the `tidlrunner` directory (the cloned [edgeai-tidlrunner](https://github.com/TexasInstruments/edgeai-tidlrunner) repository), with `--config_path` pointing to this model's config file.

**Compile using edgeai-tidlrunner - on PC**

```bash
cd /path/to/edgeai-tidlrunner
tidlrunner-cli compile --target_device J784S4 \
  --config_path /path/to/yolov8n_config.yaml
```

**Run Inference Benchmark - on device**

```bash
cd /path/to/edgeai-tidlrunner
tidlrunner-cli infer --target_device J784S4 \
  --config_path /path/to/yolov8n_config.yaml
```

To evaluate accuracy instead, replace `infer` with `evaluate` in the command above.

### Compile and Infer using edgeai-tidl-tools (Advanced):

Follow the instructions at https://github.com/TexasInstruments/edgeai-tidl-tools

### Deploy using edgeai-tidl-tools:

Deplyment can be done using **[edgeai-tidl-tools](https://github.com/TexasInstruments/edgeai-tidl-tools)**. For ONNX models, onnxruntime-tidl with TIDL acceleration can be used. Consult the documentation of edgeai-tidl-tools for more details.

---

## Citation

Ultralytics has not published a formal research paper for YOLOv8 due to the rapidly evolving nature of the models. If you use the YOLOv8 model or any other software from the Ultralytics repository in your work, please cite it using the following format:

```bibtex
@software{yolov8_ultralytics,
  author = {Glenn Jocher and Ayush Chaurasia and Jing Qiu},
  title = {Ultralytics YOLOv8},
  version = {8.0.0},
  year = {2023},
  url = {https://github.com/ultralytics/ultralytics},
  orcid = {0000-0001-5950-6979, 0000-0002-7603-6750, 0000-0003-3783-7069},
  license = {AGPL-3.0}
}
```

---

## 🔗 Resources

| Resource | Link |
|----------|------|
| **Source Code** | [ultralytics/ultralytics](https://github.com/ultralytics/ultralytics) |
| **Documentation** | [YOLOv8 Docs](https://docs.ultralytics.com/models/yolov8/) |
| **edgeai-tidl-tools** | [GitHub](https://github.com/TexasInstruments/edgeai-tidl-tools) |
| **edgeai-tidlrunner** | [GitHub](https://github.com/TexasInstruments/edgeai-tidlrunner) |
| **EdgeAI SDK** | [Documentation](https://github.com/TexasInstruments/edgeai/blob/main/edgeai-mpu/readme_sdk.md) |
| **EdgeAI MPU Overview** | [GitHub](https://github.com/TexasInstruments/edgeai/tree/main/edgeai-mpu) |
| **TI EdgeAI Ecosystem** | [GitHub](https://github.com/TexasInstruments/edgeai) |

---

## Related Models

<table>
<tr>
<td align="center">

**YOLO11**
Newer Ultralytics generation
Improved accuracy/speed

</td>
<td align="center">

**YOLO26**
Latest Ultralytics generation
Unified, end-to-end detection

</td>
<td align="center">

**YOLOX**
Anchor-free YOLO variant
Decoupled head design

</td>
<td align="center">

**RTMDet**
CNN-based alternative
Real-time mmdetection model

</td>
</tr>
</table>

---

<div align="center">

**Maintained by:** Texas Instruments EdgeAI Team  
**Last Updated:** August 2026

</div>