QPC-YOLO26, Small-Object Detection for UAV Imagery
For small objects in UAV imagery: an improved localisation loss with the network structure unchanged, plus a three-power-mode benchmark on a Jetson.
Sole author (method, experiments, on-device evaluation)
- PyTorch
- Ultralytics
- YOLO26n
- VisDrone
- UAVDT
- TensorRT 10.7
- Jetson Orin Nano Super
Background
In top-down UAV footage a large share of targets are smaller than 32×32 pixels, and a few pixels of offset change the IoU sharply. Compute and power on an edge board are tight, so changing the detection head or adding multi-scale branches costs too much.
What the system does
- Training: replace the localisation loss with quality-aware weighting for small objects
- Evaluation: small-object metrics, a threshold grid calibration, and cross-dataset transfer
- Deployment: a TensorRT FP16 engine, with latency, power and efficiency measured in three power modes
My work
- Method: designed a localisation-loss weighting that is swapped in at run time during training: w = min(exp(1 − CIoU), λ), so worse boxes get larger weights up to the cap λ, with no gradient through the weight. The network topology at inference is untouched (2.6110 M parameters and 6.5 GFLOPs, the same as YOLO26n), so on-device deployment needs no re-adaptation and latency does not change.
- Evaluation: wrote the metric script for objects under 32 px; ran a grid calibration over confidence threshold × NMS IoU; added a UAVDT transfer experiment and a YOLO11n comparison, and wrote the cases with no gain into the results as they were.
- On-device benchmark: measured mean latency, P95, power and efficiency on an Orin Nano Super in 15 W, 25 W and MAXN modes, taking whole-board input power as the power figure.
- Time breakdown: split the 22 ms end-to-end time into preprocessing, inference, NMS and wrapper overhead.
Problems and fixes
Two models differ slightly in latency. Is one faster? The two models share the same network structure and their mean latency differs by 0.3 to 2.0 ms. I treat that as a tie within measurement noise and do not call it faster.
Where is the bottleneck? Breaking down the 22 ms in MAXN mode: 5.7 ms preprocessing, 5.0 ms TensorRT inference, 3.2 ms NMS, and about 8.3 ms of Python wrapper overhead. The engine accounts for only a quarter, so squeezing the model further gains little.
Results
- 47.98 FPS and 23.85 ms P95 in MAXN mode (QPC-S, FP16, 225 aerial images, 500 timed runs after 30 warm-up runs).
- The 15 W mode is the most efficient, at 5.51 FPS/W.
- The code is open source on GitHub.
Retrospective
- The breakdown points to one conclusion: moving to a C++ pipeline and putting preprocessing on the GPU pays off more than squeezing the model further. That shaped how the later industrial-camera pipeline was written.
Technical notes
YOLO26n and QPC-S on a Jetson Orin Nano Super, three power modes each:
| Mode | Model | Mean ms | P95 ms | FPS | Power W | FPS/W |
|---|---|---|---|---|---|---|
| 15 W | YOLO26n | 28.457 | 35.720 | 35.140 | 6.895 | 5.10 |
| 15 W | QPC-S | 26.495 | 28.434 | 37.743 | 6.853 | 5.51 |
| 25 W | YOLO26n | 26.710 | 30.790 | 37.439 | 7.272 | 5.15 |
| 25 W | QPC-S | 26.213 | 28.202 | 38.149 | 7.199 | 5.30 |
| MAXN | YOLO26n | 21.178 | 24.121 | 47.218 | 9.900 | 4.77 |
| MAXN | QPC-S | 20.842 | 23.850 | 47.981 | 9.800 | 4.90 |
Breakdown of the 22 ms end-to-end time in MAXN mode: 5.7 ms preprocessing, 5.0 ms TensorRT inference, 3.2 ms NMS, about 8.3 ms Python wrapper.