For some reason I just can’t run face detection on the Raspberry Pi 5 even with the following successful tests. Can anyone help me determine what the issue is?
This works as expected:
$ hailortcli fw-control identify
Executing on device: 0000:01:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.18.0 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8L
Serial Number: HLDDLBB242500058
Part Number: HM21LB1C2LAE
Product Name: HAILO-8L AI ACC M.2 B+M KEY MODULE EXT TMP
This also works as expected:
$ hailortcli run Downloads/retinaface_mobilenet_v1.hef
Running streaming inference (Downloads/retinaface_mobilenet_v1.hef):
Transform data: true
Type: auto
Quantized: true
Network retinaface_mobilenet_v1/retinaface_mobilenet_v1: 100% | 212 | FPS: 42.35 | ETA: 00:00:00Inference result:
Network group: retinaface_mobilenet_v1
Frames count: 211
FPS: 42.15
Send Rate: 952.95 Mbit/s
Recv Rate: 234.51 Mbit/s
But when I do:
$ gst-launch-1.0 hailomuxer name=hmux libcamerasrc ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! queue name=hailo_preprocess_q_0 leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! videoscale qos=false n-threads=2 ! video/x-raw, pixel-aspect-ratio=1/1 ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! videoconvert n-threads=2 qos=false ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailonet hef-path=/home/user/Downloads/retinaface_mobilenet_v1.hef ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailofilter so-path=/usr/lib/aarch64-linux-gnu/hailo/tappas/post_processes/libface_detection_post.so qos=false function_name=retinaface ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailooverlay qos=false ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! videoconvert n-threads=2 qos=false ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! autovideosink sync=false
I get:
[HailoRT] [error] CHECK failed - Error opening file /home/user/Downloads/retinaface_mobilenet_v1.hef
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OPEN_FILE_FAILURE(13)
[HailoRT] [error] Failed parsing HEF file
[HailoRT] [error] Failed creating HEF
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OPEN_FILE_FAILURE(13)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OPEN_FILE_FAILURE(13)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OPEN_FILE_FAILURE(13)
CHECK_EXPECTED failed with status=13
Setting pipeline to PAUSED …