best.onnx model
(RT-DETR-L fine-tuned on 23 car-part classes).weights/best.onnxpip install ultralytics onnxruntime opencv-pythononnxruntime is the CPU build; use onnxruntime-gpu for CUDA.)1python infer.py --source input.jpg # single image
2python infer.py --source input.mp4 # video
3python infer.py --source ./folder # folder of images
4python infer.py --source 0 --show # webcam, live window| Flag | Default | Notes |
|---|---|---|
--source | required | image / video / folder / webcam index |
--conf | 0.1 | confidence threshold |
--imgsz | 640 | input size |
--device | "" | "" = ONNXRuntime auto (CPU/GPU), or "0" for a GPU |
--nosave | off | skip writing output files |
--show | off | show a live window |
weights/runs/detect/predict/ (first run)
weights/runs/detect/predict2/ (next run, etc.).mp4 with boxes on every frame (input is never overwritten).--conf is set to 0.1. If you see no boxes, lower it:python infer.py --source input.jpg --conf 0.05python infer.py --source input.jpg --conf 0.1 --iou 0.5python3 if python is not on your PATH.--imgsz values are letterboxed.best.pt
(MODEL = "best.pt" at the top of infer.py).