Add benchmarks for Pi 4B/5 (#18580)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
316434cd30
commit
d304c06e64
1 changed files with 34 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ This guide assumes that you already have a working Raspberry Pi OS install and h
|
|||
### Installing the Edge TPU runtime
|
||||
|
||||
First, we need to install the Edge TPU runtime. There are many different versions available, so you need to choose the right version for your operating system.
|
||||
The high frequency version runs the Edge TPU at a higher clock speed, which improves performance. However, it might result in the Edge TPU thermal throttling, so it is recommended to have some sort of cooling mechanism in place.
|
||||
|
||||
| Raspberry Pi OS | High frequency mode | Version to download |
|
||||
| --------------- | :-----------------: | ------------------------------------------ |
|
||||
|
|
@ -167,6 +168,39 @@ Find comprehensive information on the [Predict](../modes/predict.md) page for fu
|
|||
model.predict("path/to/source.png", device="tpu:1") # Select the second TPU
|
||||
```
|
||||
|
||||
## Benchmarks
|
||||
|
||||
!!! tip "Benchmarks"
|
||||
|
||||
Tested with Raspberry Pi Os Bookworm 64-Bit and a USB Coral Edge TPU.
|
||||
|
||||
!!! note
|
||||
Shown is the inference time, pre-/postprocessing is not included.
|
||||
|
||||
=== "Raspberry Pi 4B 2GB"
|
||||
|
||||
| Image Size | Model | Standard Inference Time (ms) | High Frequency Inference Time (ms) |
|
||||
|------------|---------|------------------------------|------------------------------------|
|
||||
| 320 | YOLOv8n | 32.2 | 26.7 |
|
||||
| 320 | YOLOv8s | 47.1 | 39.8 |
|
||||
| 512 | YOLOv8n | 73.5 | 60.7 |
|
||||
| 512 | YOLOv8s | 149.6 | 125.3 |
|
||||
|
||||
=== "Raspberry Pi 5 8GB"
|
||||
|
||||
| Image Size | Model | Standard Inference Time (ms) | High Frequency Inference Time (ms) |
|
||||
|------------|---------|------------------------------|------------------------------------|
|
||||
| 320 | YOLOv8n | 22.2 | 16.7 |
|
||||
| 320 | YOLOv8s | 40.1 | 32.2 |
|
||||
| 512 | YOLOv8n | 53.5 | 41.6 |
|
||||
| 512 | YOLOv8s | 132.0 | 103.3 |
|
||||
|
||||
On average:
|
||||
|
||||
- The Raspberry Pi 5 is 22% faster with the standard mode than the Raspberry Pi 4B.
|
||||
- The Raspberry Pi 5 is 30.2% faster with the high frequency mode than the Raspberry Pi 4B.
|
||||
- The high frequency mode is 28.4% faster than the standard mode.
|
||||
|
||||
## FAQ
|
||||
|
||||
### What is a Coral Edge TPU and how does it enhance Raspberry Pi's performance with Ultralytics YOLO11?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue