Projects / Detecting tiny objects in drone images with ten zoom specialists

Detecting tiny objects in drone images with ten zoom specialists

Jorge Tyrakowski

Computer Vision Practice with Deep Learning, National Taiwan University

Abstract

Drone images hold up to 250 objects each, and most are tiny: the median object is about 23 px wide and 27% are below 16 px. I detect them by enlarging the image before detecting, with overlapping tiles upsampled ×2 to ×5, and train ten detectors from four families that each specialise in one zoom level or see the full image. Their boxes are fused with Weighted Boxes Fusion [1] and adjusted by a small learned box refiner. The ensemble reaches 0.4725 val mAP50:95 (0.4147 on the public test set), against 0.4253 for its best single detector, with every model trained within 12 GiB from general-purpose COCO weights.

What I did

Make the small objects bigger

The detectors I start from were pretrained on COCO, where objects are tens to hundreds of pixels wide. Here most objects are a few pixels wide, and 16% of the images are night scenes (Figure 1). So the main idea is to bring the objects to the scale the detectors know: cut the image into overlapping tiles and upsample each tile, so that a 10 px pedestrian looks like a 20 to 50 px one.

Histogram of object sizes and histogram of mean image brightness for train, val and test.

Dataset statistics. (a) Object sizes in val (dashed line: 16 px). (b) Mean image brightness: 16% of the train and test images are dark, but only 5% of val.

Ten zoom specialists

A detector trained at one zoom level becomes a specialist for one range of sizes: at ×5 the tiny objects are easy, but a bus no longer fits in a tile. I fine-tune the same DEIMv2-X [2] three times, on 640, 512 and 400 px tiles upsampled to 1280 px (×2, ×2.5, ×3.2), and run the ×3.2 model on 320 and 256 px tiles as well, which gives two more members (×4, ×5) without training. D-FINE-X [3], YOLO26x and a Cascade R-CNN [4] that I implemented on torchvision add three more families, and a full-image D-FINE-X and DEIMv2-X cover the large objects. Models that work differently make different mistakes, which is what an ensemble averages away.

Pipeline diagram: the test image goes to full-image, tiled and multi-scale detectors, whose boxes are fused in five steps.

The method in one picture. Each detector looks at the image at its own zoom level; their boxes are merged into one set and adjusted by the box refiner.

Fusing the boxes

Each member maps its tile detections back to the full image and removes duplicates at tile overlaps. YOLO scores run lower than DETR scores, so each member’s scores are raised to a power pmp_m (YOLO 0.5, DETRs 1 to 2). Weighted Boxes Fusion then groups the boxes of all members that overlap with IoU ≥ 0.75 and replaces each group by one box whose coordinates are the confidence- and member-weighted average, so an object found by many members gets a high score and a well-centred box. Finally, a box refiner of my own, following IoU-Net [5], looks again at the pixels around each box (a RoIAlign crop with ×2 context fed to a ResNet-50) and predicts the four edge offsets

(Δx1,Δy1,Δx2,Δy2)/(w,h,w,h),\left(\Delta x_1, \Delta y_1, \Delta x_2, \Delta y_2\right) / \left(w, h, w, h\right),

trained on randomly jittered ground-truth boxes of the training set. Boxes move by 25% of the predicted correction: the full step hurts.

Every change had to pass one rule: improve val mAP by at least 0.0005 on the whole val set and on both of its random halves. The public score stayed at about 0.87 times the val score throughout, so val was a reliable guide.

Results

Main steps, from a small YOLO on whole images to the final ensemble (val mAP50:95; public test in brackets).

StepVal mAP50:95
YOLO26s, full image at 640 px0.1713
+ input 1280 px0.2875
YOLO26x zoom specialist, 512 px tiles ×20.4201
DEIMv2-X, full image 1920 px0.3989
DEIMv2-X zoom specialist, 512 px tiles ×2.5 (best single model)0.4253
Ensemble of 7 zoom specialists0.4663 (0.4088)
+ ×4 and ×5 runs, score powers, Cascade R-CNN, box refiner0.4735 (0.4147)
Final: 10 members, every training run within 12 GiB0.4725 (0.4147)

The homework was also a Kaggle competition among the 112 students of the course: the ensemble placed first on the public leaderboard and second on the private one (Figure 3).

Kaggle public leaderboard of the course competition, with Jorge's team in first place; team names, which are student IDs, are hidden except the first characters of Jorge's.

The public leaderboard of the class competition (team names are student IDs: the other students’ are hidden, and mine shows only its first characters).

The specialists really cover different sizes (Figure 4): no member is best on every size band, and the ensemble beats the best member of every band. Removing any member, even the weakest, lowers the ensemble’s score.

Heatmap of val AP per object-size band for each of the ten members and the ensemble.

Val AP50:95 per object-size band. Each specialist wins a different band (×2.5 at 8 to 16 px, ×3.2 at 16 to 32 px), strong zooms lose on large objects, and the final ensemble (bottom row) beats them all.

Most of the ensemble’s gain is localization rather than finding more objects: averaging ten independent boxes gives a better-centred box, which is exactly what mAP50:95 rewards (Figure 5).

AP at each IoU threshold for the best single member and the ensemble, and the relative gain per threshold.

(a) Val AP at each IoU threshold of the metric, best single member against the ensemble. (b) The ensemble’s relative gain: +7% at IoU 0.5 but +15 to 20% at IoU 0.75 to 0.9.

Confusion matrix of the ten classes plus a missed column, with per-class AP.

Per-class AP and class confusion of the final ensemble on val (row-normalized %). The weakest classes are the small ones and the look-alike pairs: 22% of the vans are called car.

What the detections look like

The final predictions on a dense street scene, an enlarged crop of one of the course’s test images and a night scene (confidence ≥ 0.35, 0.45 for the dense scene). Vehicles are found down to the far end of the street, and riders get their own people box apart from their tricycle or motor, as the annotation protocol asks. At night the confidences drop to about 0.4 to 0.6, and the darkest objects are missed.

Aerial view of a busy street with boxes and labels for cars, vans, buses, tricycles, motors and pedestrians.

A dense day scene from val: cars of about 15 px are found down to the far end of the street.

Enlarged crop of a test image with riders boxed as people separately from their tricycles and motors.

Enlarged crop (×2.5) of a test image: riders are boxed as people, separately from their vehicles, and two people on one scooter get two boxes.

Night scene with cars and pedestrians on a lit sidewalk detected at lower confidence; brightened for display.

A night scene from val, brightened for display only (the model saw the original image): objects on the lit sidewalk are found at lower confidence, and two scooters in the dark lane are missed.

Findings

  • Bringing the objects to the detector’s scale mattered most. A 1280 px input instead of 640 px gave +11.6 points, native tiles +6.7, and upsampled tiles gave the best single models (0.4251 against 0.3989 on whole images).
  • Stronger pretraining helped every path: the DINOv3 backbone of DEIMv2-X beat the CNN of D-FINE-L on whole images (0.3989 against 0.3822).
  • The ensemble is worth +0.047 over its best member, mostly as better-placed boxes; one specialist gives 0.420, two 0.429, five 0.466, all ten 0.473.
  • Night scenes cost 6.5 points at first. Synthetic-night copies of 20% of the training images (gamma, exposure, tint and sensor noise) narrowed the gap: 0.418 at night against 0.474 by day.
  • What did not help: Soft-NMS improved each model alone but hurt the ensemble, because its down-weighted duplicates become extra votes in the fusion; a crop re-classifier, agreement-based re-scoring and more members of an existing role all stayed within ±0.0003.
  • What remains: objects below 8 px (recall 0.75), night scenes, and the van/car and tricycle/awning-tricycle pairs.

References

  1. R. Solovyev et al. Weighted boxes fusion. Image and Vision Computing, 2021.
  2. S. Huang et al. Real-time object detection meets DINOv3 (DEIMv2). arXiv:2509.20787, 2025.
  3. Y. Peng et al. D-FINE: Redefine regression task of DETRs as fine-grained distribution refinement. ICLR, 2025.
  4. Z. Cai and N. Vasconcelos. Cascade R-CNN: delving into high quality object detection. CVPR, 2018.
  5. B. Jiang et al. Acquisition of localization confidence for accurate object detection (IoU-Net). ECCV, 2018.