hef file generated PC environment: ubuntu 22.04, DFC 3.27version, yolov5_seg,
Problem: When I try to run the hef file I created on the Raspberry Pi 5 ai kit 8L chip, an error like the image occurs.
Methods attempted to solve 1. When converting to onnx 2 hef, change the input_shape and output_shape of the hailo_model_zoo/network/yolov5n_seg.yaml file to 6406403. (I also tried to make it the same as the image size in hailo raspberry pi instance segmentation.py)
Methods attempted to solve 2. To determine if it is a camera problem, run detection.py with the existing hef file and check if it works normally.
I received results showing that my hef file performance is good. But I still get an error when running it. If you delete hailofilter from the pipeline, the video will appear, but yolo will not run. Which pipeline would you modify?
[quote=“hyeonju, post:6, topic:2511, full:true”]
So why does that error occur?
If i remove hailofilter in pipeline, it will run, but yolo will not run. I would appreciate any advice on how to resolve this issue.
The error message below occurs when hailofilter is not removed.
Yes, i can play the MP4 video on Raspberry Pi.
Additionally, this video operates normally on the existing Raspberry Pi example (detection.py, instance segmentation.py).
I made a lane detection model with yolov5n.
Unlike the existing one, it is a single label. In this case, should I modify the libyolov5seg_post.so file?
It is said that the cause of the segmentation fault is accessing the wrong memory.
If I have to create a new .so file, which cpp file should I use in hailo-rpi5-examples?
Can I convert hailo-rpi5-examples/cpp/yolo_hailortcpp.cpp to a .so file and apply it?
this link is yolo_hailortcpp.cpp.
The existing one used 80 labels, but the new model uses 1 label, so is it right to change the code? Is this problem likely to cause a segmentation fault?
I know that the yolo model provided by hailo-rpi5-example has 80 classes. However, I only used 1 class when creating a new model. Could this cause a problem?
I think I need to modify libyolov5seg_post.so imported by hailofilter because of this part where the number of classes has changed.
Am I wrong?
I run the example in the link below.
I put the model I created into the instance segmentation.py example and ran it. However, it did not run. You advised me to modify the pipeline.
So I removed hailofilter in the pipeline. Then the video ran. But yolo did not run.
When this situation occurs, please let me know which part of hailofilter I need to modify to be able to run yolo.