Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
required_packages
required_packages
Required packages

Code Block
languagebash
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
languagebash
sudo apt-get install -y libopencv-dev python3-opencv 
Code Block
languagebash
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
languagebash
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

...

Anchor
method2
method2
Method 2 Docker

...

Download TAPPAS container

  • Go to: hailo website → developer zone → software downloads

  • Download the Tappas docker container:

    image-20240326-131751.pngImage Added

Move it to your machine and unzip the file using:

Code Block
languagebash
unzip tappas_<VERSION>_ubuntu22_docker_x86_64.zip

Install and run the image

Code Block
languagebash
./run_tappas_docker.sh --tappas-image TAPPAS_IMAGE_PATH

To resume the image after exiting you can use

Code Block
languagebash
./run_tappas_docker.sh --resume

Anchor
testing
testing
Testing using hailortcli benchmark

Info

Running hailirtcli requires the use of sudo

To test we will benchmark the models:

Code Block
languagebash
cd tappas/apps/h8/gstreamer/general/detection/resources
sudo hailortcli benchmark yolov5m_wo_spp_60p.hef

...