Image Segmentation Error

Howdy y’all!

I am running through the provided Demos and am running into an error when attempting the Image Segmentation. I am getting the code:

ERROR: *** hailo postprocess config file not found: /usr/share/hailo-models/yolov5seg.json ***

I am not sure where this file is located as it doesn’t seem to exist anywhere in my file directory. I know I’m missing something or not understanding properly. Any help would be useful! Thank you very much.

Hey @user151,

The file should be downloaded automatically when you run the installation or download resources. To help troubleshoot this issue effectively, could you provide more details about the error you’re encountering? A log file or error message would be particularly helpful in understanding what’s going wrong.

Hello! So sorry it took so long to get back to you.

The image segmentation demo is the only one I cannot get to run. I feel like I’ve gone through all of the installation on Raspberry’s end and Hailo’s end. Still, image segmentation does not work. This is what I am seeing:
rpicam-hello -t 0 --post-process-file /usr/share/rpi-camera-assets/hailo_yolov5_segmentation.json --framerate 20
[0:12:23.405461270] [10383] INFO Camera camera_manager.cpp:327 libcamera v0.4.0+53-29156679
[0:12:23.419319061] [10389] INFO RPI pisp.cpp:720 libpisp version v1.1.0 e7974a156008 27-01-2025 (21:50:51)
[0:12:23.438856138] [10389] INFO RPI pisp.cpp:1179 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx500@1a to CFE device /dev/media0 and ISP device /dev/media2 using PiSP variant BCM2712_C0
Made X/EGL preview window
Postprocessing requested lores: 640x640 BGR888
Reading post processing stage “hailo_yolo_segmentation”
ERROR: *** hailo postprocess config file not found: /usr/share/hailo-models/yolov5seg.json ***

This the error I receive when running Hailo’s segmentation demo:
python basic_pipelines/detection_simple.py
Auto-detected Hailo architecture: hailo8
filesrc location=“/home/projectpi/hailo-rpi5-examples/venv_hailo_rpi5_examples/lib/python3.11/site-packages/hailo_apps_infra/../resources/example_640.mp4” name=source ! queue name=source_queue_decode leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! decodebin name=source_decodebin ! queue name=source_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoscale name=source_videoscale n-threads=2 ! queue name=source_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoconvert n-threads=3 name=source_convert qos=false ! video/x-raw, pixel-aspect-ratio=1/1, format=RGB, width=640, height=640 ! queue name=inference_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoscale name=inference_videoscale n-threads=2 qos=false ! queue name=inference_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! video/x-raw, pixel-aspect-ratio=1/1 ! videoconvert name=inference_videoconvert n-threads=2 ! queue name=inference_hailonet_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailonet name=inference_hailonet hef-path=/home/projectpi/hailo-rpi5-examples/venv_hailo_rpi5_examples/lib/python3.11/site-packages/hailo_apps_infra/../resources/yolov6n.hef batch-size=2 vdevice-group-id=1 nms-score-threshold=0.3 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 force-writable=true ! queue name=inference_hailofilter_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailofilter name=inference_hailofilter so-path=/home/projectpi/hailo-rpi5-examples/venv_hailo_rpi5_examples/lib/python3.11/site-packages/hailo_apps_infra/../resources/libyolo_hailortpp_postprocess.so function-name=filter qos=false ! queue name=inference_output_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! queue name=identity_callback_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! identity name=identity_callback ! queue name=hailo_display_overlay_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailooverlay name=hailo_display_overlay ! queue name=hailo_display_videoconvert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoconvert name=hailo_display_videoconvert n-threads=2 qos=false ! queue name=hailo_display_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! fpsdisplaysink name=hailo_display video-sink=autovideosink sync=true text-overlay=False signal-fps-measurements=true
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FILE_OPERATION_FAILURE(14)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FILE_OPERATION_FAILURE(14)
[HailoRT] [error] Failed parsing HEF file
[HailoRT] [error] Failed creating HEF
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FILE_OPERATION_FAILURE(14)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FILE_OPERATION_FAILURE(14)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_FILE_OPERATION_FAILURE(14)
CHECK_EXPECTED failed with status=14
Error: gst-stream-error-quark: Stream doesn’t contain enough data. (4), ../plugins/elements/gsttypefindelement.c(1012): gst_type_find_element_chain_do_typefinding (): /GstPipeline:pipeline0/GstDecodeBin:source_decodebin/GstTypeFindElement:typefind:
Can’t typefind stream
Shutting down… Hit Ctrl-C again to force quit.
Exiting with error…