Sample code execution crashes on error

Hello @izidorg,

Thank you for getting back to us!

I understand now the remaining visualization issue that you are describing:

  • the pytorch_yolov8_seg displays:
    • the tracking ID
    • the name of the detected object (unknown since it’s a custom model and the ZED SDK has no knowledge about what it represents)
    • the distance
  • while the pytorch_yolov8 displays:
    • the class idx (an integer)
    • the distance

We’ll uniform that in the next release, by having as before the class idx + the distance and still add the track id when the tracking is enabled.

In the meantime, If you want to replace the UNKNOWN with class idx in the pytorch_yolov8_seg sample, you can replace str(obj.label) with f"class {obj.raw_label}" in pytorch_yolov8_seg/cv_viewer/tracking_viewer.py#L127.