I believe YOLO should great picking up small object and do the analysis ASAP.
- Step 1: According to YOLO NVIDIA Guide
$ yolo export model=yolo11n.pt format=engine # creates 'yolo11n.engine'
- Step 2:
$ yolo export model=yolo11n.pt format=engine half=True
$ yolo export model=yolo11n.pt format=engine int8=True
Note1: int8 improves a lot. So it's crucial to export model, adapting hardware acceleration.
Note2: Make sure maximize Jetson Orin's performance.
$ sudo nvpmodel -m 0
$ sudo jetson_clocks
- Step 3: NVIDIA Jetson boards uses TensorRT, refer to TensorRT Export for YOLOv8 Models
$ yolo export model=yolo11n.pt format="engine" batch=8 workspace=4 int8=True data="coco.yaml"
- Step 4: Improve model export according to Model Export with Ultralytics YOLO
$ yolo export model=yolo11n.pt format="engine" batch=8 workspace=8 dynamic=True int8=True data="coco.yaml"
- Step 5: Add famous 11n/5nu/8n models
$ yolo export model=yolo11n.pt format="engine" batch=8 workspace=2.0 imgsz=320 dynamic=True int8=True data="coco.yaml"
$ yolo export model=yolov5nu.pt format="engine" batch=8 workspace=2.0 imgsz=320 dynamic=True int8=True data="coco.yaml"
$ yolo export model=yolov8n.pt format="engine" batch=8 workspace=2.0 imgsz=320 dynamic=True int8=True data="coco.yaml"
Note1: It's NOT good choice with imgsz=1920,1080
, 640(default)/320 or 416(real time+GOOD accuracy)/256 or 128(embedded+NG accuracy).
Note2: dynamic=False
improves speed, but input size will be different from image size on fpv requirements. Maybe more coding logical to handle larger sensor data coverage.
Note3: batch improves real time response, but need large resources. There is a balance between time delay/accuracy.
- Step 6: Using YOLO's plot function increases speed
Lines 351 to 354 in 3aeebbb
stride=3 means that the detector would only be run on every 3rd frame. The other two frames would be interpolated using the Kalman filter predictions.
Lines 110 to 157 in 68d2053
Note: It's significantly speed up performance.
Firstly, clarify Which DS version for Jetson Orin Nano/Jetpack 5.1.4/L4T 35.6.0?
TBD.
- An Introduction to BYTETrack: Multi-Object Tracking by Associating Every Detection Box
- Introduction to Multiple Object Tracking and Recent Developments
- ByteTrack: Multi-Object Tracking by Associating Every Detection Box
TBD.