Face Recognition TAPPAS

Alright, I’ve been diving into all sorts of code and documentation analysis for the last couple of weeks. I now fully understand the pipeline concept of GStreamer.

There are a few questionmarks that I’d like to get answered.

I’ve installed the software suite with the self-extractable. I am wondering where TAPPAS is installed. I found the path:
/hailo_ai_sw_suite/artifacts/tappas
where there is an install.sh file. When I run it it asks for a bunch of dependencies that weren’t met, and so I install them and then run this script. It seems that TAPPAS is not installed with the software suite, even though the Suite Components page of the documentation states that TAPPAS is part of the SW. THIS is very very confusing. So why would the software suite install itself, without one of its components?

Also, the dependencies that were missing, were not called out on the installation of the SW. Why?

What is confusing me more is that the output below says
Hailo Tappas was removed successfully Why is this?

(hailo_venv) ddkrd@workstation:~/Downloads/hailo_ai_sw_suite/artifacts/tappas$ ./install.sh 
No TAPPAS_WORKSPACE in environment found, using the default one /home/ddkrd/Downloads/hailo_ai_sw_suite/artifacts/tappas
Hailo Tappas was removed successfully.
To unset Tappas environment variables, please relogin or reboot the PC.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

WARNING: Requirement ffmpeg not found.
WARNING: Requirement python-gi-dev not found.
WARNING: Requirement cmake not found.
WARNING: Requirement libzmq3-dev not found.

SYSTEM REQUIREMENTS REPORT

Component           Requirement                       Found
==========          ==========                        ==========  ==========
Apt-Package         ffmpeg                            X           Required
Apt-Package         x11-utils                         V           Required
Apt-Package         python3-dev                       V           Required
Apt-Package         python3-pip                       V           Required
Apt-Package         python3-setuptools                V           Required
Apt-Package         libgirepository                   V           Required
Apt-Package         gcc-9                             V           Required
Apt-Package         g++-9                             V           Required
Apt-Package         python-gi-dev                     X           Required
Apt-Package         pkg-config                        V           Required
Apt-Package         libcairo2-dev                     V           Required
Apt-Package         libgirepository1.0-dev            V           Required
Apt-Package         libgstreamer1.0-dev               V           Required
Apt-Package         cmake                             X           Required
Apt-Package         libgstreamer-plugins-base1.0-dev  V           Required
Apt-Package         libzmq3-dev                       X           Required
Apt-Package         rsync                             V           Required
Apt-Package         git                               V           Required
Apt-Package         libgstreamer-plugins-bad1.0-dev   V           Required
Apt-Package         gstreamer1.0-plugins-base         V           Required
Apt-Package         gstreamer1.0-plugins-good         V           Required
Apt-Package         gstreamer1.0-plugins-bad          V           Required
Apt-Package         gstreamer1.0-libav                V           Required
Apt-Package         gstreamer1.0-tools                V           Required
Apt-Package         gstreamer1.0-x                    V           Required
Pkg_config-Package  opencv4                           V           Required
Pkg_config-Package  opencv_imgproc                    V           Required
Pkg_config-Package  opencv_core                       V           Required
Pkg_config-Package  opencv_imgcodec                   V           Required
Pkg_config-Package  opencv_features2d                 V           Required
Pkg_config-Package  opencv_calib3d                    V           Required
Pkg_config-Package  opencv_flann                      V           Required
Package             Gstreamer                         V           Required

See system_reqs_results.log for more information.

I’ve got an RPi5 with the AI HAT+ 26 TOPS.

There is this GIT REPO that has got it working for the 8L chip, it shouldn’t be to hard to edit. But on the RPi5 where I’ve installed the Hailo components running sudo apt install hailo-all I can’t find for example the libvms_face_align.so

Which seems to be located here in the repo script
/usr/lib/aarch64-linux-gnu/apps/vms/libvms_face_align.so

Is there any page where there is clarity on where this stuff is installed, both on x86 systems and RPi5? If so, please point me to it.

Regards, Oktober

So, when I run the face_recognition.sh file it states that there are discrepancies in the driver versions:

ddkrd@rpi:~/PROJECTS/tappas/apps/h8/gstreamer/general/face_recognition $ ./face_recognition.sh 
[HailoRT] [error] CHECK failed - Driver version (4.18.0) is different from library version (4.19.0)
[HailoRT] [error] Driver version mismatch, status HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_INVALID_DRIVER_VERSION(76)

This is not satisfying. Since I can’t find an ARM version that is installable on the RPi5. So, IDK really how to solve this. I tried installing the ARM version, which was for ubuntu, but I tried it on raspbian OS. It didn’t work. Which was unfortunate since they’re both debian based.

I am now going to install ubuntu on my RPi5 and see how it goes.

Why would the driver versions be incompatible or non-downloadable or worse, non-installable on the development board of choice i.e. the RPi5 in this case.

You download and install the hailo-all package, and it has older versions installed which are not compatible with the example code that you are providing

Hey @oktober.yildiz,

It seems like the driver error mismatch you’re experiencing is due to a version incompatibility between TAPPAS and HailoRT.

Based on the information you provided, you have TAPPAS version 3.30, which is compatible with HailoRT version 4.19. However, the driver you currently have installed is version 4.18. This mismatch is causing the library conflict you’re seeing.

To resolve this issue, you have two options:

  1. Update HailoRT to version 4.19 to match your TAPPAS version (3.30).

    • This will ensure compatibility between TAPPAS and HailoRT, and the driver error should be resolved.
  2. Downgrade TAPPAS to version 3.29.1 or 3.29 to match your current HailoRT version (4.18).

    • By using a TAPPAS version that is compatible with your existing HailoRT installation, the library mismatch should be eliminated.

Choose the option that best suits your needs and aligns with your project requirements.

Regarding the missing dependencies during installation, here’s some additional information:

Missing Dependencies

Why are dependencies missing during installation?

The self-extractable installer for Hailo primarily focuses on core components such as HailoRT and the model zoo. TAPPAS, being more use-case-specific, requires separate handling of dependencies.

Dependencies like ffmpeg, python-gi-dev, and libzmq3-dev are not bundled with the installer because they are dependent on the specific system and environment. The installation script checks for these dependencies and reports them to the user, prompting them to install the missing packages manually.

This approach allows for flexibility and ensures compatibility with different system configurations. It also avoids potential conflicts with existing packages or different versions of the dependencies already present on the user’s system.

sudo apt-get install ffmpeg python-gi-dev libzmq3-dev

If you have any further questions or need assistance with the installation process, please let me know. I’m here to help!

Best regards,
Omria

1 Like