Skip to content

Commit 218adb3

Browse files
Merge pull request #37 from KasunThushara/main
ADD: Run Yolov8 on Hailo Environment
2 parents de8b0fd + 084e5bc commit 218adb3

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Running AI Tasks with Hailo -With AI Kit (13TOPS)
2+
3+
## Introduction
4+
5+
In the last chapter, we showed you how to set up the Raspberry Pi for various AI tasks. In this chapter, we will discuss how to perform object detection and pose estimation using the Hailo environment.
6+
7+
If you haven't set up your device yet, please follow the (previous tutorial)[https://seeed-projects.github.io/Tutorial-of-AI-Kit-with-Raspberry-Pi-From-Zero-to-Hero/docs/Chapter_2-Configuring_the_RaspberryPi_Environment/Introduction_to_Hailo_in_Raspberry_Pi_Environment] first and then return to this one.
8+
9+
The Hailo Model Zoo is a collection of pre-trained models using the **COCO dataset** for 80 classes. You can find various models trained by the Hailo team. In this tutorial, we will test **YOLOv8**, but you can explore other models, each with different architectures. The Hailo Model Zoo provides pre-trained models for high-performance deep learning applications.
10+
11+
Hailo provides different pre-trained models in ONNX/TF formats, as well as pre-compiled HEF (Hailo Executable Format) binary files to execute on Hailo devices.
12+
13+
Link to (Model Zoo)[https://github.com/hailo-ai/hailo_model_zoo]
14+
15+
In this tutorial, we will demonstrate object detection and pose estimation in the Hailo environment.
16+
17+
### Object Detection
18+
19+
20+
21+
- Clone the repository:
22+
23+
```bash
24+
git clone https://github.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L.git
25+
```
26+
- Navigate to directory
27+
28+
```bash
29+
cd Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L
30+
```
31+
32+
- Run object detection:
33+
34+
```bash
35+
bash ./run.sh object-detection-hailo
36+
```
37+
![object detection](../../pictures/Chapter3/object_detection_with_AIkit.gif)
38+
39+
We measured the inference speed of YOLOv8 for object detection with a **640×640** input resolution using the AI kit. With Hailo acceleration, it reached **29.5** FPS.
40+
41+
### Pose Estimation
42+
43+
- Clone the repository (if not already):
44+
45+
```bash
46+
git clone https://github.com/Seeed-Projects/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L.git
47+
```
48+
49+
- Navigate to directory
50+
51+
```bash
52+
cd Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L
53+
```
54+
55+
- Run object detection:
56+
57+
```bash
58+
bash run.sh pose-estimation-hailo
59+
```
60+
![pose estimation](../../pictures/Chapter3/YOLOv8-pose-estimation-with-AIkit.gif)
61+
62+
The inference speed of YOLOv8 for pose estimation with a **640×640** input resolution using Hailo acceleration and the AI kit reached **27** FPS.
63+
64+
65+
2.6 MB
Loading
1.53 MB
Loading

0 commit comments

Comments
 (0)