Mohammed Mudassir Uddin

P2-GraftComputer vision · UAV imageryNovember 2026

When Does a Stride-4 Prediction Level Help a Pretrained YOLOv10 on Drone Images?

A controlled study of grafting a stride-4 level onto a pretrained detector

A stride-4 prediction level is the usual remedy for small objects in drone images. Grafted onto a pretrained YOLOv10 so that the original outputs stay unchanged, and initialised from the stride-8 weights, the level adds 1.68 test-dev AP at 640 pixels in every seed. The gain shrinks as the input grows and disappears at 1280 pixels, while a plain baseline at higher resolution is more accurate at equal compute.

+1.68
test-dev AP at 640 px on YOLOv10n, 14.09 to 15.77, same sign in all 3 seeds
+0.58
at 896 px, with a bootstrap interval of +0.42 to +0.79
−0.13
at 1280 px, where the gain disappears
51
training runs on one RTX PRO 6000 Blackwell GPU with one recipe

The findingThe extra level helps at 640 pixels and less with every step up in resolution

Drone images are dominated by small objects. In the VisDrone-DET2019 training split, 60.5% of the 343,204 annotated boxes cover less than 32×32 pixels. After the resize to a 640-pixel network input, the median box measures 10.7×11.4 pixels, smaller than one cell of the stride-8 grid of the finest YOLO head. A prediction level at stride 4 (P2) is therefore the common remedy.

Reported gains of such a level are difficult to compare, because baselines are often copied from other papers with other schedules, input sizes and evaluation code, and a larger input is rarely tried. The study asks when the level pays off and what the level costs compared with raising the resolution. Every number comes from saved predictions scored on VisDrone test-dev, a split never used for a decision.

The gain shrinks from +1.68 at 640 px to −0.13 at 1280 px

Left: test-dev AP gain of P2-Graft by input size, one dot per seed. Right: test-dev AP against deploy GFLOPs for the baseline at four input sizes and for P2-Graft at three.
Figure 1. (a) Test-dev AP gain of P2-Graft over the baseline by input size, one dot per seed. (b) Test-dev AP against deploy GFLOPs: the baseline at higher resolution stays above P2-Graft at equal compute.

How it worksA branch that cannot change the pretrained outputs

P2-Graft appends one level to the detection pyramid. The branch reads the stride-4 backbone feature and the pretrained P3 neck feature, and no existing layer reads the new level, so the three original outputs equal the pretrained outputs exactly at initialisation. The maximum absolute difference over neck features and raw head outputs is 0, checked for YOLOv10n and YOLOv10s.

p2 = G([Up2×(p3), b2]),   y2 = H(p2)

A level starting at random must learn what the P3 level already knows about boxes and classes. The weights of the P3 neck block and the P3 head are therefore copied into the new block and head wherever tensor shapes agree, covering 0.22 M parameters. The deeper variant repeats the block twice. Both choices were fixed by a 35-epoch search over five candidates on validation AP, and the winner, the deeper block with warm start, is called P2-Graft throughout.

The new stride-4 level fires on the small pedestrians

Pyramid drawn as bars with the pretrained backbone, the neck with the new stride-4 level in orange, the heads, and the class-score map of each level on a real VisDrone crop.
Figure 2. Confident cells of each prediction level on one VisDrone crop. The new stride-4 level (orange) fires on the small pedestrians.

ResultsSame input size first, then the same compute

At 640 pixels, P2-Graft raises test-dev AP from 14.09 to 15.77, a gain of +1.68 with +1.53, +1.77, +1.75 in the three seeds. Small-object AP rises by 2.07 and validation AP by 2.89. The gain falls to +0.58 at 896 pixels and to −0.13 at 1280 pixels. A control with batch 32 for the model (one seed) gives +1.31 against the same-seed baseline, so the smaller batch needed at 896 pixels costs 0.42 AP. Longer training does not favour the new level either: 150 epochs at 640 pixels give +1.17.

Table 1. Test-dev and validation AP (mean ± s.d. over the seeds); gain is the paired test-dev difference to the baseline. 90 epochs unless stated.
ModelInputSeedsGFLOPsTest-dev APVal APGain
YOLOv10n baseline64036.614.09±0.0917.75±0.26—
P2-Graft640313.715.77±0.2020.64±0.09+1.68
YOLOv10n baseline896313.018.16±0.1023.23±0.07—
P2-Graft, batch 16896327.018.74±0.3124.07±0.10+0.58
P2-Graft, batch 32896127.019.5125.25+1.31
YOLOv10n baseline1280127.122.4528.44—
P2-Graft1280155.622.3229.14−0.13
YOLOv10n baseline1536139.723.8930.29—
YOLOv10n baseline, 150 epochs64016.614.4618.37—
P2-Graft, 150 epochs640113.715.6319.86+1.17
YOLOv10s baseline640321.617.46±0.1321.98±0.13—
P2-Graft, YOLOv10s640339.818.19±1.1723.29±1.74+0.73

The shrinking gain matters because P2-Graft doubles the deploy GFLOPs (13.7 against 6.6 at 640 pixels) and halves the batch-16 throughput (1,234 against 2,427 images per second at 896 pixels). Spending the same compute on resolution proves more effective: a baseline at 896 pixels costs 13.0 GFLOPs and reaches 18.16 AP, 2.39 above P2-Graft at 640 pixels. At 27 GFLOPs the baseline at 1280 pixels reaches 22.45, 3.71 above P2-Graft at 896 pixels, and the baseline keeps improving to 23.89 at 1536 pixels.

On two validation crops, P2-Graft finds 20 instead of 10 of 40 objects and 21 instead of 12 of 37

Ground truth, baseline and P2-Graft on two validation crops with matches in green, false alarms in red and missed objects in yellow.
Figure 3. Crops with the largest gain in found objects (score ≥ 0.3, IoU ≥ 0.5): green match, red false alarm, yellow missed. The crops show the best case, not an average.

Inside the branchThe warm start is what makes the branch useful

Since the extra level pays off mainly at small inputs, the internals of the branch were examined at 35 epochs. With random initialisation the level adds only +0.26 AP, matching weights by tensor name gives +0.48, and the warm start gives +0.92, three seeds each. Depth helps only together with the warm start (+0.26 against +1.05). Detail injection, a strided convolution of the stride-4 feature added to the P3 head for 4% more GFLOPs, gives +0.61 with 16 channels but only +0.36 after 90 epochs at 640 pixels.

Table 2. Variants of the branch at 640 pixels after 35 epochs; gain is the paired test-dev difference.
VariantSeedsGFLOPsTest-dev APVal APGain
YOLOv10n baseline36.613.46±0.0916.22±0.04—
P2 level, random init312.713.72±0.0217.15±0.19+0.26
P2 level, key-matched weights312.713.94±0.0517.08±0.21+0.48
P2 level, warm start312.714.39±0.0818.05±0.02+0.92
Deeper block, random init113.713.7617.05+0.26
Deeper block, warm start (P2-Graft)313.714.52±0.1718.48±0.05+1.05
3× deeper block, warm start114.814.6618.30+1.16
Detail injection, 16 channels36.914.08±0.0817.16±0.21+0.61
P2-assisted P3, 32 channels18.814.4917.82+1.00

Whether the gain carries over to a larger model was checked on YOLOv10s at 640 pixels. The mean gain is +0.73 (bootstrap interval +0.49 to +0.96), yet the seeds give +0.06, +0.19, +1.94. The standard deviation of the model across seeds is 1.17 AP against 0.13 for the baseline, so two of three seeds show no gain and the outcome is not counted as a replication.

On YOLOv10s, one seed out of three produces most of the average gain

Left: test-dev AP gain of each branch variant at 35 epochs. Right: YOLOv10s baseline and P2-Graft for three seeds.
Figure 4. (a) Test-dev AP gain of each variant at 35 epochs. (b) YOLOv10s, paired seeds.

Published resultsPlaced next to the numbers reported by other works

Validation numbers of other works on VisDrone are quoted from the respective papers, with the schedules used there (300 epochs for FBRT-YOLO), and were not re-evaluated. At 640 pixels, P2-Graft on YOLOv10n reaches 20.64 AP and 35.96 AP50 with 2.41 M parameters, above the reported YOLOv8-N (19.6 and 33.3) and FBRT-YOLO-N (20.2 and 34.4), after 90 epochs against 300. On YOLOv10s the model is level with the reported YOLOv10-S. DroneScan-YOLO, which also adds a stride-4 branch and trains at 1280 pixels, reports higher numbers than every model here.

Table 3. Validation AP on VisDrone. Highlighted rows: models of the study, 90 epochs. Other rows: as reported by FBRT-YOLO (AAAI 2025) and DroneScan-YOLO (2026).
ModelInputParams (M)APAP50
YOLOv8-N6403.219.633.3
FBRT-YOLO-N6400.920.234.4
YOLOv10-S6407.223.839.3
FBRT-YOLO-S6402.925.942.4
FBRT-YOLO-M6407.228.445.9
DroneScan-YOLO128010.2335.655.3
P2-Graft, YOLOv10n6402.4120.6435.96
P2-Graft, YOLOv10s6407.5823.2939.86
P2-Graft, YOLOv10n12802.4129.1447.75
YOLOv10n baseline15362.2730.2949.42

LimitationsWhat the study does not show

  • Only VisDrone and two model scales were used; no cross-dataset result is reported.
  • Results at 1280 pixels, with 150 epochs, and at 1536 pixels have one seed.
  • The 896-pixel comparison used a smaller batch for the model, and the control measuring the effect has one seed.
  • The model was chosen on validation among five candidates, and the validation gain exceeds the test-dev gain (+2.89 against +1.68 at 640 pixels), so test-dev numbers are the ones to quote.
  • Schedules of 35 to 150 epochs are shorter than the 300-epoch recipes of the literature, and absolute values should not be compared with published tables.
The takeaway

A stride-4 level grafted onto a pretrained YOLOv10 is worth 1.68 test-dev AP at 640 pixels, at twice the compute. For VisDrone, raising the input resolution is the better use of compute, and any stride-4 extension of a pretrained detector should report how the new weights are initialised.

CitationCite this work

@misc{nayeem2026p2graft,
  title        = {When Does a Stride-4 Prediction Level Help a
                  Pretrained YOLOv10 on Drone Images?},
  author       = {Nayeem, Quratulain and Taranum, Fahmina
                  and Uddin, Mohammed Mudassir and Rizwan, Sara},
  year         = {2026},
  howpublished = {\url{https://github.com/Mudassiruddin7/YOLO}}
}