Meet some errors when run own yolov8n model

I use rpi5 and hailo8l, and I optimize yolov8n model to har model, and compile yolov8n model to hef model, so I run this hef model on GitHub - hailo-ai/hailo-rpi5-examples environment, and I get

CHECK failed - HEF file length does not match (status = 26)

so I have checked this linke : CHECK failed - HEF file length does not match (status = 26)
And I know the hailort, hailodriver and tapps is not suitable with my hef model. So I update hailort and hailodriver, and here is the result:



And I update Tapps as this link:tappas/docs/installation/manual-install.rst at master · hailo-ai/tappas · GitHub
here is the output:

(hailo_venv) ain@ain:~/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/tappas-3.29.0 $ ./install.sh --skip-hailort --target-platform rpi
No TAPPAS_WORKSPACE in environment found, using the default one /home/ain/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L/tappas-3.29.0
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 gcc-9 not found.
WARNING: Requirement g++-9 not found.

SYSTEM REQUIREMENTS REPORT

Component           Requirement                       Found       
==========          ==========                        ==========  ==========
Apt-Package         ffmpeg                            V           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                             X           Required
Apt-Package         g++-9                             X           Required
Apt-Package         python-gi-dev                     V           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                             V           Required
Apt-Package         libgstreamer-plugins-base1.0-dev  V           Required
Apt-Package         libzmq3-dev                       V           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.

Then I get error when I set up environment:

ain@ain:~/Benchmarking-YOLOv8-on-Raspberry-PI-reComputer-r1000-and-AIkit-Hailo-8L $ source setup_env.sh 
Setting up the environment...
Package hailo-tappas-core was not found in the pkg-config search path.
Perhaps you should add the directory containing `hailo-tappas-core.pc'
to the PKG_CONFIG_PATH environment variable
Package 'hailo-tappas-core', required by 'virtual:world', not found
TAPPAS_VERSION is not the required version .
You are not in the venv_hailo_rpi5_examples virtual environment.
Virtual environment exists. Activating...
TAAPAS_POST_PROC_DIR set to 

And when I run object detection I get error:

ModuleNotFoundError: No module named 'hailo'
1 Like

I followed the same process, and stuck on this error. can anyone please help.

Hello, I have solve this problem, and you can check this link: AI kite tutorial