Projects / Edge AI

YOLO11n from PyTorch to TensorRT

I took YOLO11n from PyTorch to ONNX to TensorRT at FP32, FP16 and INT8 and measured speed and COCO accuracy with the same scripts for every backend. FP16 ran 1175 FPS at batch 1 with no accuracy loss. INT8 lost 2.0 mAP points and was slower.

Run it

TensorRT FP16, batch 1
1175 FPS
mAP50-95, FP16 and FP32
0.424 both
INT8
-2.0 mAP points, slower than FP16

Run it in your browser

What didn’t work

INT8 lost 2.0 mAP50-95 points and was slower than FP16 for this small model. A second study with larger models, batch 8 and 512 calibration images did not change that. I did not try hardware with dedicated INT8 paths (Jetson Orin DLA) or quantization-aware training, and the browser demo’s WebGPU path is untested.

Open the repo on GitHub