You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information about the AI HAT+, including mechanical specifications and operating environment limitations, see the https://datasheets.raspberrypi.com/ai-hat-plus/raspberry-pi-ai-hat-plus-product-brief.pdf[product brief].
.The 26 tera-operations per second (TOPS) Raspberry Pi AI HAT+
5
+
image::images/ai-hat-plus-hero.jpg[width="80%"]
6
+
7
+
The Raspberry Pi AI HAT+ add-on board has a built-in Hailo AI accelerator compatible with
8
+
Raspberry Pi 5. The NPU in the AI HAT+ can be used for applications including process control, security, home automation, and robotics.
9
+
10
+
The AI HAT+ is available in 13 and 26 tera-operations per second (TOPS) variants, built around the Hailo-8L and Hailo-8 neural network inference accelerators. The 13 TOPS variant works best with moderate workloads, with performance similar to the xref:ai-kit.adoc[AI Kit]. The 26 TOPS variant can run larger networks, can run networks faster, and can more effectively run multiple networks simultaneously.
11
+
12
+
The AI HAT+ communicates using Raspberry Pi 5’s PCIe interface. The host Raspberry Pi 5 automatically detects the on-board Hailo accelerator and uses the NPU for supported AI computing tasks. Raspberry Pi OS's built-in `rpicam-apps` camera applications automatically use the NPU to run compatible post-processing tasks.
13
+
14
+
[[ai-hat-plus-installation]]
15
+
== Install
16
+
17
+
To use the AI HAT+, you will need:
18
+
19
+
* a Raspberry Pi 5
20
+
21
+
Each AI HAT+ comes with a ribbon cable, GPIO stacking header, and mounting hardware. Complete the following instructions to install your AI HAT+:
22
+
23
+
. First, ensure that your Raspberry Pi runs the latest software. Run the following command to update:
24
+
+
25
+
[source,console]
26
+
----
27
+
$ sudo apt update && sudo apt full-upgrade
28
+
----
29
+
30
+
. Next, xref:../computers/raspberry-pi.adoc#update-the-bootloader-configuration[ensure that your Raspberry Pi firmware is up-to-date]. Run the following command to see what firmware you're running:
31
+
+
32
+
[source,console]
33
+
----
34
+
$ sudo rpi-eeprom-update
35
+
----
36
+
+
37
+
If you see 6 December 2023 or a later date, proceed to the next step. If you see a date earlier than 6 December 2023, run the following command to open the Raspberry Pi Configuration CLI:
38
+
+
39
+
[source,console]
40
+
----
41
+
$ sudo raspi-config
42
+
----
43
+
+
44
+
Under `Advanced Options` > `Bootloader Version`, choose `Latest`. Then, exit `raspi-config` with `Finish` or the *Escape* key.
45
+
+
46
+
Run the following command to update your firmware to the latest version:
47
+
+
48
+
[source,console]
49
+
----
50
+
$ sudo rpi-eeprom-update -a
51
+
----
52
+
+
53
+
Then, reboot with `sudo reboot`.
54
+
55
+
. Disconnect the Raspberry Pi from power before beginning installation.
56
+
57
+
. For the best performance, we recommend using the AI HAT+ with the Raspberry Pi Active Cooler. If you have an Active Cooler, install it before installing the AI HAT+.
. Install the spacers using four of the provided screws. Firmly press the GPIO stacking header on top of the Raspberry Pi GPIO pins; orientation does not matter as long as all pins fit into place. Disconnect the ribbon cable from the AI HAT+, and insert the other end into the PCIe port of your Raspberry Pi. Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing inward, towards the USB ports. With the ribbon cable fully and evenly inserted into the PCIe port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
. Set the AI HAT+ on top of the spacers, and use the four remaining screws to secure it in place.
68
+
69
+
. Insert the ribbon cable into the slot on the AI HAT+. Lift the ribbon cable holder from both sides, then insert the cable with the copper contact points facing up. With the ribbon cable fully and evenly inserted into the port, push the cable holder down from both sides to secure the ribbon cable firmly in place.
70
+
71
+
. Congratulations, you have successfully installed the AI HAT+. Connect your Raspberry Pi to power; Raspberry Pi OS will automatically detect the AI HAT+.
72
+
73
+
== Get started with AI on your Raspberry Pi
74
+
75
+
To start running AI accelerated applications on your Raspberry Pi, check out our xref:../computers/ai.adoc[Getting Started with AI] guide.
Copy file name to clipboardExpand all lines: documentation/asciidoc/accessories/ai-kit.adoc
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
include::ai-kit/about.adoc[]
2
2
3
-
include::ai-kit/getting-started.adoc[]
4
-
5
3
== Product brief
6
4
7
5
For more information about the AI Kit, including mechanical specifications and operating environment limitations, see the https://datasheets.raspberrypi.com/ai-kit/raspberry-pi-ai-kit-product-brief.pdf[product brief].
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/ai/getting-started.adoc
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,29 @@
1
1
== Getting Started
2
2
3
-
This guide will help you set up the Raspberry Pi AI Kit with your Raspberry Pi 5. This will enable you to run `rpicam-apps` camera demos using the Hailo AI neural network accelerator.
3
+
This guide will help you set up a Hailo NPU with your Raspberry Pi 5. This will enable you to run `rpicam-apps` camera demos using an AI neural network accelerator.
4
4
5
5
=== Prerequisites
6
6
7
7
For this guide, you will need the following:
8
8
9
-
- a Raspberry Pi 5
10
-
- a Raspberry Pi AI Kit, which includes:
11
-
** an M.2 HAT+
12
-
** a pre-installed Hailo-8L AI module
13
-
- a 64-bit Raspberry Pi OS Bookworm install
14
-
- any official Raspberry Pi camera (e.g. Camera Module 3 or High Quality Camera)
9
+
* a Raspberry Pi 5
10
+
* one of the following NPUs:
11
+
** a xref:../accessories/ai-kit.adoc[Raspberry Pi AI Kit], which includes:
12
+
*** an M.2 HAT+
13
+
*** a pre-installed Hailo-8L AI module
14
+
** a xref:../accessories/ai-hat-plus.adoc[Raspberry Pi AI HAT+]
15
+
* a 64-bit Raspberry Pi OS Bookworm install
16
+
* any official Raspberry Pi camera (e.g. Camera Module 3 or High Quality Camera)
15
17
16
18
=== Hardware setup
17
19
18
-
. Attach the camera to your Raspberry Pi 5 board following the instructions at xref:camera.adoc#install-a-raspberry-pi-camera[Install a Raspberry Pi Camera]. You can skip reconnecting your Raspberry Pi to power, because you'll need to disconnect your Raspberry Pi from power for the next step.
20
+
. Attach the camera to your Raspberry Pi 5 board following the instructions at xref:../accessories/camera.adoc#install-a-raspberry-pi-camera[Install a Raspberry Pi Camera]. You can skip reconnecting your Raspberry Pi to power, because you'll need to disconnect your Raspberry Pi from power for the next step.
19
21
20
-
. Follow the xref:ai-kit.adoc#ai-kit-installation[installation instructions] to get your AI Kit hardware connected to your Raspberry Pi 5.
22
+
. Depending on your NPU, follow the installation instructions for the xref:../accessories/ai-kit.adoc#ai-kit-installation[AI Kit] or xref:../accessories/ai-hat-plus.adoc#ai-hat-plus-installation[AI HAT+], to get your hardware connected to your Raspberry Pi 5.
21
23
22
-
. Follow the instructions to xref:../computers/raspberry-pi.adoc#pcie-gen-3-0[enable PCIe Gen 3.0]. This step is optional, but _highly recommended_ to achieve the best performance with your AI Kit.
24
+
. Follow the instructions to xref:raspberry-pi.adoc#pcie-gen-3-0[enable PCIe Gen 3.0]. This step is optional, but _highly recommended_ to achieve the best performance with your NPU.
23
25
24
-
. Install the dependencies required to use the AI Kit. Run the following command from a terminal window:
26
+
. Install the dependencies required to use the NPU. Run the following command from a terminal window:
25
27
+
26
28
[source,console]
27
29
----
@@ -44,7 +46,7 @@ This installs the following dependencies:
44
46
$ hailortcli fw-control identify
45
47
----
46
48
+
47
-
If you see output similar to the following, you've successfully installed the AI Kit and its software dependencies:
49
+
If you see output similar to the following, you've successfully installed the NPU and its software dependencies:
48
50
+
49
51
----
50
52
Executing on device: 0000:01:00.0
@@ -90,9 +92,9 @@ This starts the camera and shows a preview window for ten seconds. Once you have
90
92
91
93
=== Demos
92
94
93
-
The `rpicam-apps` suite of camera applications implements a xref:../computers/camera_software.adoc#post-processing-with-rpicam-apps[post-processing framework]. This section contains a few demo post-processing stages that highlight some of the capabilities of the AI Kit.
95
+
The `rpicam-apps` suite of camera applications implements a xref:camera_software.adoc#post-processing-with-rpicam-apps[post-processing framework]. This section contains a few demo post-processing stages that highlight some of the capabilities of the NPU.
94
96
95
-
The following demos use xref:../computers/camera_software.adoc#rpicam-hello[`rpicam-hello`], which by default displays a preview window. However, you can use other `rpicam-apps` instead, including xref:../computers/camera_software.adoc#rpicam-vid[`rpicam-vid`] and xref:../computers/camera_software.adoc#rpicam-still[`rpicam-still`]. You may need to add or modify some command line options to make the demo commands compatible with alternative applications.
97
+
The following demos use xref:camera_software.adoc#rpicam-hello[`rpicam-hello`], which by default displays a preview window. However, you can use other `rpicam-apps` instead, including xref:camera_software.adoc#rpicam-vid[`rpicam-vid`] and xref:camera_software.adoc#rpicam-still[`rpicam-still`]. You may need to add or modify some command line options to make the demo commands compatible with alternative applications.
96
98
97
99
To begin, download the post-processing JSON files required for the demos. These files determine which post-processing stages to run and configure the behaviour of each stage. For example, you can enable, disable, strengthen, or weaken the strength of the temporal filtering in the object detection demos. Or you could enable or disable the output mask drawing in the segmentation demo.
98
100
@@ -107,7 +109,7 @@ TIP: The commands provided in subsequent sections use the JSON files in this rep
107
109
108
110
==== Object Detection
109
111
110
-
This demo displays bounding boxes around objects detected by a neural network. To disable the viewfinder, use the xref:../computers/camera_software.adoc#nopreview[`-n`] flag. To return purely textual output describing the objects detected, add the `-v 2` option. Run the following command to try the demo on your Raspberry Pi:
112
+
This demo displays bounding boxes around objects detected by a neural network. To disable the viewfinder, use the xref:camera_software.adoc#nopreview[`-n`] flag. To return purely textual output describing the objects detected, add the `-v 2` option. Run the following command to try the demo on your Raspberry Pi:
0 commit comments