This sample is designed to run a state of the art object detection model using the ZED SDK and optimizing your model with the highly optimized TensorRT framework. Internally, the ZED SDK takes its images, run inference on it to obtain 2D box detections and extract 3D informations (localization, 3D bounding boxes) and tracking.
This sample shows how to pass your custom YOLO-like onnx model to the ZED SDK.
A custom detector can be trained with the same architecture. These tutorials walk you through the workflow of training a custom detector :
- Yolov8 https://docs.ultralytics.com/modes/train
- Yolov6 https://github.com/meituan/YOLOv6/blob/main/docs/Train_custom_data.md
- Yolov5 https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data
- Get the latest ZED SDK
- Check the Documentation
- TensorRT Documentation
This sample is expecting an ONNX exported using the original YOLO code. Please refer to the section corresponding to the needed version.
- Build for Windows
- Build for Linux/Jetson
./yolo_onnx_zed [.onnx] [zed camera id / optional svo filepath]
# For example yolov8n
./yolo_onnx_zed yolov8n.onnx 0 # 0 for zed camera id 0
# With an SVO file
./yolo_onnx_zed yolov8n.onnx ./foo.svo
If you need assistance go to our Community site at https://community.stereolabs.com/