correct json file for inference of Yolov8s-seg.hef

I am new to these stuff, I try to run a yolov8s-seg.hef model on Hailo15h using Gstreamer, the problem is the configuration json file that is already exists in my device is yolov5s-seg, and when i try to use it , it doesn’t work, also when i try to create a new json file similar to that to my model still i get error. can anyone help me on this ? i checked some topics but couldn’t find a solution here.

Hey @Omid_Navadehrazi,

Welcome to the Hailo Community!

I’d suggest taking a look at the yolov5m_seg configuration as a starting point. Here’s the parameter structure you’ll want to work with:

{
    "iou_threshold": 0.6,
    "score_threshold": 0.25,
    "outputs_size": [
        20,
        40,
        80
    ],
    "outputs_name": [
        "yolov5m_seg/conv85",
        "yolov5m_seg/conv66",
        "yolov5m_seg/conv75",
        "yolov5m_seg/conv83"
    ],
    "anchors": [
        [
            116,
            90,
            156,
            198,
            373,
            326
        ],
        [
            30,
            61,
            62,
            45,
            59,
            119
        ],
        [
            10,
            13,
            16,
            30,
            33,
            23
        ]
    ],
    "input_shape": [
        640,
        640
    ],
    "strides": [
        32,
        16,
        8
    ]
}

You’ll need to adjust these values to match your specific model architecture. Once you’ve updated the configuration, make sure to reference the correct JSON file name when setting up your GStreamer pipeline.

  hailoupload ! \
  hailonet hef-path=./yolov8s-seg.hef \
           config-json=./resources/configs/yolov8s-seg.json ! \

Let me know if you run into any issues or need help with the specific parameter adjustments!

Thank you so much it seems the json file problem is now fixed but the problem now seems to be .so file that is not there for yolov8.

"Cannot load symbol: /usr/lib/hailo-post-processes/libyolov5seg_post.so: undefined symbol: yolov5_seg
"

Hey @Omid_Navadehrazi,

Quick question - do you have the Hailo media library or Tappas set up on your Hailo-15H yet?

If not, you’ll need to compile these files to get everything working properly:

I’d definitely recommend installing all the post-processing modules while you’re at it - saves you headaches later when you need them.

Let me know if you run into any issues with the setup!