Yolov5seg.json missing from hailo-models

Using Pi5 with Hailo8L.& new kid on the block.

I’m trying to get the rpicam-hello post processing working using :-

hailo_yolov5_segmentation.json

but it expects a config file which doesn’t exist:-

"hailopp_config_file": "/usr/share/hailo-models/yolov5seg.json"

I have spent hours web searching trying to find help on this to no avail.
I have tried to find documentation on post-processing config files to no avail.
I have tried copying the following from the zoo (as an experiment)

yolov5n_seg_nms_config.json

and renaming it.

but that throws an error :-

ERROR: *** json config file doesn't follow schema rules ***

I have been able to run the other rpicam apps and the hailo-rpi5-examples.

Could anyone point me to documentation regarding the config file or , quicker still, point me to a working config file “yolov5seg.json”.

Many thanks for any help .

Solved!

I copied

yolov5n_seg.json

from

hailo-rpi5-examples-main/resources
``` to 

/usr/share/hailo-models

 then edited 

/usr/share/rpi-camera-assets/hailo_yolov5_segmentation.json".


I changed the config file path entry to:-

“hailopp_config_file”: “/usr/share/hailo-models/yolov5n_seg.json”


I'd still like to know where the documentation is for config files - unless they are auto-generated when the model is created. I have a lot to learn.

Hope this helps others.
1 Like