Downloads · 30 days
0
MKSHRESTHA/rtdetr-l_carparts-seg
rtdetr-l_carparts-seg is a machine learning model from MKSHRESTHA. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Run object detection on images/videos with the exported best.onnx model (RT-DETR-L fine-tuned on 23 car-part classes).
Downloads · 30 days
0
Access
Public
Updated Aug 23, 2026
Repo size
132 MB
Likes
0
Public
Click a slice to open those files.
.onnx132 MB · 100%
From the Hugging Face model README
Run object detection on images/videos with the exported best.onnx model
(RT-DETR-L fine-tuned on 23 car-part classes).
weights/best.onnxpip install ultralytics onnxruntime opencv-python
(onnxruntime is the CPU build; use onnxruntime-gpu for CUDA.)
python infer.py --source input.jpg # single image
python infer.py --source input.mp4 # video
python infer.py --source ./folder # folder of images
python 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 |
Annotated results are saved to:
weights/runs/detect/predict/ (first run)
weights/runs/detect/predict2/ (next run, etc.)
.mp4 with boxes on every frame (input is never overwritten).The exported model scores every detection below 0.25 (typical max ≈ 0.16).
This is normal DETR score calibration and does not mean the model is bad —
mAP is based on score ranking, not absolute value. Because of this, the
default --conf is set to 0.1. If you see no boxes, lower it:
python infer.py --source input.jpg --conf 0.05
If you get too many overlapping/duplicate boxes, tighten NMS:
python infer.py --source input.jpg --conf 0.1 --iou 0.5
python3 if python is not on your PATH.--imgsz values are letterboxed.best.pt
(MODEL = "best.pt" at the top of infer.py).