i try to get the detection example to work on hailo 8l module.
(hailo_virtualenv) hailo@edge:/local/workspace/tappas/apps/h8/gstreamer/general/detection$ hailortcli fw-control identify
Executing on device: 0000:01:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.20.0 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8L
Serial Number: HLDDLBB241902128
Part Number: HM21LB1C2LAE
Product Name: HAILO-8L AI ACC M.2 B+M KEY MODULE EXT TMP
I exchanged the .hef from the detections script to match my module,
but for some reason I only get a mirror window of my screen and an error message.
My changes:
usage of yolov5m_wo_spp.hef from official site for 8l and renamed it accordingly to make it clear. → yolov5m_wo_spp_8l.hef
a_detection.sh ↔ detection.sh changes:
-
readonly DEFAULT_NETWORK_NAME=“yolov5m_wo_spp_8l.hef”
-
readonly DEFAULT_HEF_PATH=“$RESOURCES_DIR/yolov5m_wo_spp_8l.hef”
-
if [[ $input_source =~ “/dev/video0” ]]; then
since:
(hailo_virtualenv) hailo@edge:/local/workspace/tappas/apps/h8/gstreamer/general/detection$ ls /dev/video*
/dev/video0 /dev/video1
(hailo_virtualenv) hailo@edge:/local/workspace/tappas/apps/h8/gstreamer/general/detection$ ll resources/yolov5m_wo_spp_8l.hef
-rw-r–r-- 1 hailo ht 35767507 Feb 14 10:24 resources/yolov5m_wo_spp_8l.hef
(hailo_virtualenv) hailo@edge:/local/workspace/tappas/apps/h8/gstreamer/general/detection$ ./a_detection.sh
Running yolov5m_wo_spp_8l.hef
gst-launch-1.0 filesrc location=/local/workspace/tappas/apps/h8/gstreamer/general/detection/resources/detection.mp4 name=src_0 ! decodebin ! queue 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=/local/workspace/tappas/apps/h8/gstreamer/general/detection/resources/yolov5m_wo_spp_8l.hef batch-size=1 nms-score-threshold=0.3 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 ! queue leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailofilter function-name=yolov5m_wo_spp_8l.hef so-path=/local/workspace/tappas/apps/h8/gstreamer/libs/post_processes//libyolo_hailortpp_post.so config-path=null qos=false ! 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 ! fpsdisplaysink video-sink=xvimagesink text-overlay=false name=hailo_display sync=false
Setting pipeline to PAUSED …
Cannot load symbol: /local/workspace/tappas/apps/h8/gstreamer/libs/post_processes//libyolo_hailortpp_post.so: undefined symbol: yolov5m_wo_spp_8l.hef
Pipeline is PREROLLING …
Redistribute latency…
Redistribute latency…
Caught SIGSEGV
#0 0x00007f661480bbcf in __GI___poll (fds=0x56338f094fe0, nfds=2, timeout=100)
#1 0x00007f6614a27256 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f66149d12b3 in g_main_loop_run ()
#3 0x00005633590c4adb in ()
#4 0x00007f661471cd90 in __libc_start_call_main
#5 0x00007f661471ce40 in __libc_start_main_impl
#6 0x00005633590c4c05 in _start ()
Spinning. Please run ‘gdb gst-launch-1.0 43739’ to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
0:00:00.0 / 0:00:29.7 (0.0 %)
I get the same error, if I dont use /unplug the webcam on /dev/video
any idea why?