I am trying to do instance segmentation with Hailo8. So, as a proof of concept I wanted to try out the available HEF files and their results on my data.
I don’t want to use YOLOv5 or YOLOv8.
I haven’t been able to find any inference script either in CPP or Python that would support Yolact_regnetx models. I looked here already -
To run YOLACT RegNetX instance segmentation models on Hailo8, you can use the existing instance segmentation examples (YOLOv5-seg or YOLOv8-seg) from the Hailo Application Code Examples repository and modify them for your YOLACT model.
Steps to Adapt the Existing Examples:
Start with the existing instance segmentation example: Use either the C++ or Python YOLOv5-seg/YOLOv8-seg example as your base.
Understand your model’s structure: Run hailortcli parse-hef {your_yolact_model.hef} to identify the input and output layers of your YOLACT RegNetX model.
Update model parameters: Modify the configuration parameters in the example to match your YOLACT model specifications:
Input dimensions
Number of classes
Model-specific thresholds
Replace the post-processing logic: The key modification is implementing YOLACT-specific post-processing to replace the YOLO post-processing. YOLACT outputs require different handling for: