...
Anchor |
---|
| required_packages |
---|
| required_packages |
---|
|
Required packages
Code Block |
---|
|
sudo apt-get update
sudo apt-get upgrade |
Code Block |
---|
sudo apt-get install -y rsync ffmpeg x11-utils python3-dev python3-pip python3-setuptools python3-virtualenv python-gi-dev libgirepository1.0-dev gcc-9 g++-9 cmake git libzmq3-dev unzip |
Code Block |
---|
|
sudo apt-get install -y libopencv-dev python3-opencv |
Code Block |
---|
|
sudo apt-get install -y libcairo2-dev libgirepository1.0-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio gcc-9 g++-9 python-gi-dev |
Code Block |
---|
|
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 |
...
Clone the driver repository
Code Block |
---|
# If using Host, clone:
git clone https://github.com/hailo-ai/hailort-drivers.git
# If using Docker (driver V4.15 is required), download:
wget https://github.com/hailo-ai/hailort-drivers/archive/refs/tags/v4.15.0.zip |
Compile the driver
Code Block |
---|
cd hailort-drivers/linux/pcie
make all |
...
Method 2 Docker
...
Download TAPPAS container
Go to: hailo website → developer zone → software downloads
Download the Tappas docker container:
Image Added
Move it to your machine and unzip the file using:
Code Block |
---|
|
unzip tappas_<VERSION>_ubuntu22_docker_x86_64.zip |
Install and run the image
Code Block |
---|
|
./run_tappas_docker.sh --tappas-image TAPPAS_IMAGE_PATH |
To resume the image after exiting you can use
Code Block |
---|
|
./run_tappas_docker.sh --resume |
Testing using hailortcli benchmark
Info |
---|
Running hailirtcli requires the use of sudo |
To test we will benchmark the models:
Code Block |
---|
|
cd tappas/apps/h8/gstreamer/general/detection/resources
sudo hailortcli benchmark yolov5m_wo_spp_60p.hef |
...