I’m working on a project using a Yolov8l model on a Raspberry Pi5 with the Hailo 8 coprocessor. I successfully trained and tested the model on my PC, and I can retrieve the detected object ID using the following code:
model = YOLO("yolo8l.pt")
model.predict(frame)
track_ids = results[0].boxes.id.int().cpu().tolist()
I then converted the model to the .hef format following the instructions provided in hailo-rpi5-examples. While I can successfully perform inference on the converted model, I’m unable to retrieve the object ID. I can access the detected object label, but there seems to be no clear way to get the ID.
I’ve searched for solutions online but haven’t found anything definitive. Can anyone provide some guidance on how to access the object ID after conversion to the .hef model?
Expected Behavior:
I expect the code to return a list containing the IDs of the detected objects, similar to the output on my PC.