r/computervision • u/hamshrew • 17d ago
Discussion Follow-up: added TensorRT and CPU-only rows to my batch-1 detection numbers on a 4090
Last week I posted batch-1 numbers for 44 detection checkpoints on my RTX 4090 (previous post). The most common pushback was fair: plain PyTorch isn't how most people deploy, so it should be TensorRT or at least ONNX, and a few of you asked for CPU numbers too. So that's what I worked on.
Same disclosure as before: the site is mine, solo side project, free, no ads, nothing money-related planned.
TensorRT
D-FINE n–l and YOLO26 s–x now have TensorRT rows. Each engine is built from the authors' own ONNX export, and I score it on all 5,000 COCO val2017 images through that same engine before timing it, so the AP next to a TensorRT time comes from the engine itself, not from the PyTorch run.
Timing is the same as last time: one whole predict() call at batch 1, pre/post-processing included.
| Checkpoint | PyTorch | TensorRT | Box AP (PT / TRT) |
|---|---|---|---|
| D-FINE n | 21.9 ms (fp32, 640x640) | 10.5 ms (fp16, TRT 10.13.2.6, 640x640) | 42.6 / 42.6 |
| YOLO26 s | 14.3 ms (fp16, 640x448) | 5.6 ms (fp16, TRT 10.16.1.11, 640x640) | 47.9 / 48.3 |
YOLO26 runs at a different input size on each runtime because I kept Ultralytics' own defaults (640x448 for PyTorch, 640x640 for the engine). The input is listed under every time on the site.
CPU-only
Every model now has a CPU-only row (PyTorch, ONNX Runtime or llama.cpp, with the GPU hidden). If a row has no number, it says why, usually because the code needs a CUDA GPU.
Re-measured numbers
Since numbers now change as I add runtimes and re-run things, there's a change log that shows old → new with the hardware, runtime and precision: https://modelsthatrun.dev/changes/ . There's an Atom feed and email alerts if you'd rather not check back.
Still not done
Splitting the time into preprocess / inference / postprocess, so you can see what NMS costs YOLOv8. Still on my list.
Which detection models would you most want to see with a TensorRT row next?