论文解读

AI 辅助整理
方法
冻结视觉基础模型密集特征,航拍影像,新数据集4908帧。
发现
航拍上优于PET-DINO与GeCo2,K=40时单深度达RGB的92%。
机会点
可探索多模态融合与跨域泛化,降低标注成本以提升小样本检测实用性。

论文摘要

预印本未经同行评审。用冻结视觉基础模型密集特征做免训练小样本菠萝检测,航拍影像上优于PET-DINO与GeCo2;K=40时单深度达RGB的92%。新数据集4908帧,泛化受标注成本限制。

全文

arXiv

Decoding Frozen Vision Representations for Training-Free Few-Shot
Pineapple Detection
Manfred Gonzalez-Hernandez1,† Danny Xie-Li2 Fabian Fallas-Moya3 Camile Lendering1
Joaquín Figueira1 Erkut Akdag1 Giacomo D’Amicantonio1 Egor Bondarev1
1 Eindhoven University of Technology 2 University of Luxembourg 3 Universidad de Costa Rica
† Corresponding author:m.gonzalez.hernandez@tue.nl
Abstract
Few-shot object detection in agricultural imagery is ham-
pered by dense vegetation, repeated patterns, and scarce
annotations. We present a training-free detector that turns
dense features from frozen visual foundation models directly
into detections, without fine-tuning, a learned head, or ex-
ternal proposals: a whitened foreground–background direc-
tion estimated from annotated support images scores every
query patch, and the score field is decoded with an adap-
tive threshold and support-derived geometry. We also test
whether predicted relative depth can be fed directly to RGB-
pretrained frozen encoders. On aerial pineapple imagery,
the detector outperforms PET-DINO and GeCo2 at every
evaluated support size; at K=40, predicted depth alone
reaches 92% of the RGB performance with DINOv2, and
RGB–depth fusion lowers counting error for both encoders.
We release the Pineapple Plantation dataset (4,908 aerial
frames, 1,995 annotated with 17,609 boxes, predicted depth,
leakage-aware splits) and analyse transfer to two further
agricultural datasets.1

  1. Introduction
    Accurate crop counts are important for production forecast-
    ing, loss estimation, and harvest planning in large-scale agri-
    culture. Pineapple cultivation is a particularly relevant set-
    ting: large volumes of imagery can be collected through
    low-altitude Unmanned Aerial Vehicle (UA V) flights, but
    manually annotating every plant remains costly [ 10, 20].
    Pineapple crowns are also difficult to localize because they
    are embedded in dense foliage, partially occluded, and vi-
    sually similar to the surrounding leaves. At the studied
    commercial plantation (Upala Agricola, one of the world’s
    1Code and benchmark are available at https://github.com/
    imagine-laboratory/Dino-Radio
    Resulting Inference
    Stage
    predictionground truth
    VFM
    (DINOv2
    / RADIO)
    Foreground
    BackgroundPatches-objects
    Patches-Prototypes
    Stage
    Score FieldQuery image
    (unseen)
    Support
    Images
    Figure 1. Training-free few-shot detection using frozen
    RGB+depth features. K annotated support images define fore-
    ground/background patch prototypes whose similarity field local-
    izes objects in unseen queries, without fine-tuning or learned detec-
    tion heads. At K= 40 , our method achieves 1.5× the Intersection
    over Union (IoU) F1 of the strongest baseline, while RGB+depth
    fusion reduces count Mean Absolute Error (MAE) for both en-
    coders.
    largest exporters of fresh pineapple) in Costa Rica, counts
    are estimated by workers traversing selected field lines cover-
    ing approximately 2–3% of the plantation. Our UA V flights
    at approximately 2 m were designed to emulate this sam-
    pling process while preserving the close-range view needed
    to distinguish individual crowns. Since reliable counting
    requires identifying individual plants rather than only esti-
    mating image-level density, we formulate the problem as
    few-shot Object Detection (OD): localize each pineapple
    crown from a small annotated support set and derive counts
    from the resulting detections.
    Recent Visual Foundation Models (VFMs), including
    self-DIstillation with NO labels (DINOv2) [ 14] and Ag-
    1
    arXiv:2611.28442v1 [cs.CV] 21 Nov 2026

glomerative Model–Reduce All Domains Into One (AM-
RADIO) [9, 17], provide transferable dense representations.
Few-shot methods such as Prompt-Enriched Grounding
DINO (PET-DINO) [6] and Generalized-Scale Object Count-
ing (GeCo2) [ 16] exploit visual prompting for detection
and counting, but rely primarily on red–green–blue (RGB)
appearance, which can be ambiguous in dense vegetation.
Although frozen visual representations encode geometric
information, whether predicted depth can improve detection
when processed by RGB-pretrained frozen encoders remains
unclear.
We study whether frozen dense features can support few-
shot pineapple detection and counting directly, while ex-
amining whether predicted depth provides complementary
geometric information within the same frozen feature space.
We evaluate DINOv2 [14] and AM-RADIO [9, 17]. From an-
notated support images, foreground and background patches
are identified at multiple box-interior scales and summarized
into a covariance-whitened prototype direction. Applying
this direction to each query patch yields a spatial score field,
which is separated with a support-selected two- or three-
population Otsu criterion [15] and converted into individual
detections using support-derived geometry. No query anno-
tations, gradient updates, learned detection head, or external
proposal model are required.
Each aerial image may contain multiple crowns, so we
define the few-shot setting in terms ofsupport imagesrather
than individual object instances. Because RGB appearance
can be ambiguous under dense foliage, we evaluate RGB,
predicted relative depth, and RGB+depth fusion to determine
how much geometric information can be exploited by frozen
RGB-pretrained encoders for detection and counting. We
test transfer to two additional agricultural datasets.
The main contributions are:
• A training-free few-shot detector that converts frozen
dense features directly into object detections and counts,
without a learned head or external proposals.
• A study of predicted relative depth as input to RGB-
pretrained frozen encoders, including depth-only and
RGB–depth fusion without cross-modal adaptation.
• The Pineapple Plantation Dataset, comprising 4,908 aerial
frames, including 1,995 annotated frames with 17,609
boxes, predicted depth, and leakage-aware splits.
• An evaluation showing improved pineapple counting and
detection over PET-DINO and GeCo2, scalability with ad-
ditional support, domain-dependent transfer, and encoder-
dependent benefits from RGB–depth fusion.
2. Related Work
Object Detection and Few-Shot Learning.Classical OD
includes two-stage detectors such as Faster R-CNN [ 19]
and single-stage detectors such as YOLO [ 18], both typi-
cally requiring substantial annotation. Few-shot learning
reduces this burden by adapting from few examples, as in
feature reweighting [ 11], two-stage fine-tuning [ 24], and
prototype-based methods [22]. For detection, however, class
recognition must also be coupled with localization.
Dense Representations and Foundation Models.Self-
supervised transformers expose dense semantic and spa-
tial structure [ 3]. LOST [ 21] and TokenCut [ 25] exploit
this structure for unsupervised object discovery, while DI-
NOv2 [14], AM-RADIO [17], and RADIOv2.5 [9] provide
more general dense representations. These works motivate
direct localization from frozen feature grids, but mainly
address class-agnostic discovery rather than few-shot local-
ization of a target class.
Few-Shot and Training-Free Detection.FS-DETR [ 2]
and DE-ViT [30] use visual examples for few-shot detection
without novel-class retraining. More recent approaches in-
clude PET-DINO [6] and GeCo2 [16], while Matcher [13]
and ProtoSAM [1] combine frozen features with segmenta-
tion mechanisms. Training-free detection has also been ex-
plored with external proposal models such as Segment Any-
thing Model (SAM) [4], frozen proposal classifiers [5], and
direct training-free detection [27]. In contrast, our method
operates directly on dense frozen features without an external
proposal model or learned detection head.
Precision Agriculture.OD supports fruit detection, crop
monitoring, and yield estimation [10, 20]. Agricultural ap-
pearance varies across crops, locations, acquisition condi-
tions, and growth stages, and object-level annotation is costly
to repeat. Few-shot and training-free approaches are there-
fore attractive for adapting detectors to new agricultural
settings.
3. The Pineapple Plantation Dataset
The Pineapple Plantation Dataset is a temporally structured
benchmark for few-shot object detection and counting in
dense agricultural scenes. In commercial plantations, pineap-
ple counts support plant-loss estimation and harvest planning
and are commonly obtained through manual field sampling.
To emulate this process, low-altitude UA V flights were con-
ducted at approximately 2 m over a commercial pineapple
plantation [28], preserving the close-range view needed to
distinguish individual crowns. The dataset contains 4,908
aerial RGB frames, including 1,995 annotated frames with
17,609 pineapple bounding boxes, together with predicted
relative-depth maps from Depth Anything v2 [29]. The im-
agery, annotations, depth maps, leakage-aware splits, and
evaluation protocol are publicly available.
Annotations were manually created using Label Stu-
dio [ 23] by trained annotators without model assistance.
Plants were labeled if crowns were fully or partially visi-
ble with identifiable foliage, while severely occluded plants
were excluded. Lead authors performed a final quality check
to ensure accurate box alignment and eliminate errors.
2

Support-Conditioned Prototype
Scoring:
Score field
Otsu binarization Instance
formation
Average
between areas
VFM
(DINOv2 /
RADIO)
Concatenated
Patch Features Multi arealabelling Mean pooledpatch vectors Prototype direction -foreground separated
-( )
BackgroundForeground
Inference
Feature Extraction
Figure 2. Overview of the proposed training-free detector. Support annotations define a foreground–background prototype from a frozen
encoder. The prototype is applied to the query image to produce a score field through dot-product similarity; an adaptive Otsu threshold
separates foreground, and support-derived geometric information converts the resulting regions into bounding boxes. No fine-tuning or
learned detection head is required.
To reduce temporal leakage, each flight is divided into
60-frame blocks assigned to training, validation, or test, dis-
carding 20-frame buffers and cross-session revisits. The re-
sulting splits contain 3,536 training, 381 validation, and 346
test frames, including 1,500, 115, and 155 annotated frames
with 14,097, 769, and 1,083 boxes, respectively. Evaluation
uses fully annotated validation and test frames. Support im-
ages are sampled from distinct capture blocks to reduce the
likelihood of observing the same plants across shots.
The dataset poses two challenges for counting: pineap-
ple crowns have highly similar appearance to surrounding
foliage, and they are frequently partially occluded by leaves,
producing strong foreground–background ambiguity.
4. Methodology
4.1. Problem Setting and Overview
As illustrated in Fig. 2, the proposed method follows a
support-conditioned, training-free detection framework. An
episodeconsists of a support set SK ={(I Rn , IDn ,B n)}Kn=1,
where I Rn denotes the RGB image, I Dn its aligned depth map,
and Bn the corresponding object bounding-box annotations.
The support set accompanies unannotated query images from
the same domain, for which the goal is to predict a set of
bounding boxes.
A frozen encoder maps each image to a G×G grid of
D-dimensional patch tokens zij ∈R D; class and register
tokens are discarded. The frozen encoders are DINOv2-
B with registers at 448×448 and AM-RADIO v2.5-B at
512×512 , both producing a 32×32 token grid (G= 32 ).
Depth maps hold relative depth scaled per image to 8 bits,
brighter is nearer (min–max for Depth Anything v2, 1st–
99th percentile for Depth Anything 3); they are replicated
across three channels and encoded exactly like RGB images,
including the encoder’s input normalization. Tokens from
each modality are ℓ2-normalized; for RGB+D, the two token
grids are concatenated and normalized again. The support
annotations then define a prototype direction (Sec. 4.2) that
turns each query into a score field, which is thresholded
per image (Sec. 4.3) and converted into boxes with support-
derived geometry (Sec. 4.4); Fig. 2 summarizes these stages.
No gradient is computed, and no encoder or detector pa-
rameters are learned. All episode-specific quantities are esti-
mated from the support set and refitted whenever it changes.
The foreground threshold, however, is recomputed for ev-
ery query image to account for image-to-image variation in
illumination, plant density, and visible background.
4.2. Support-Conditioned Prototype
Patches near the center of an annotated box are more likely
to describe the pineapple itself, whereas boundary patches
often mix the plant with surrounding vegetation. To ac-
count for this variation, each ground-truth box defines con-
centric inner rectangles whose areas correspond to frac-
tions a∈ A={0.25,0.50,1.00} of the original box. A
patch whose center lies inside one of these rectangles is la-
belled asforegroundat scale a, forming Pa. Patches outside
the foreground rectangle but inside the corresponding box
enlarged by a factor of 1.15 are discarded as ambiguous.
Patches outside all enlarged boxes form thebackgroundset
N , shared across scales. The labelled descriptors at scale a
areL a =P a ∪ N.
A simple prototype could use the mean difference µ+a −
µ−a . However, pineapples and surrounding vegetation share
3

strong visual characteristics, particularly leaf appearance, so
directions with large variation in both groups can receive
excessive importance. We therefore account for the covari-
ance of the labelled descriptors. The direction is computed
independently at each foreground scale, normalized, and
averaged across scales:
p= 1|A′| Xa∈A′ n ˜Σ−1a µ+a −µ −a  , (1)
where µ±a are the means of Pa and N , n(·) denotes ℓ2
normalization, ˜Σa is the regularized covariance of La, and
A′ ⊆ Aretains the scales for whichPa is non-empty.
Because covariance is estimated from a limited number of
support descriptors, poorly estimated directions can become
overemphasized after inversion. We therefore regularize Σa
by shrinkage toward a scaled identity matrix:
˜Σa = (1−α a)Σ a +α a trΣ aD I, α a = DD+|L a| .
(2)
The weightα a depends only on support-set information:
with fewer labelled descriptors, regularization is stronger; as
more support descriptors become available, more weight is
given to the estimated covariance.
Each query patch receives the scalar score sij =z Tijp,
measuring its alignment with the support-conditioned proto-
type. These scores form a fieldS∈R G×G.
4.3. Per-Image Foreground Separation
The score field S indicates how strongly each query patch
aligns with the prototype. Because illumination, vegeta-
tion density, and visible background vary across images,
an image-specific threshold is estimated independently for
every query image using Otsu’s criterion [15].
Otsu partitions the scores into either C= 2 or C= 3
ordered groups. With C= 2 , the scores are separated into
background and foreground. With C= 3 , an additional
low-scoring background population, such as bare soil or sky,
can be separated while preserving the highest-scoring group
as foreground.
For either value of C, Otsu determines C−1 ordered
boundaries t1 <· · ·< tC−1. The highest boundary serves
as the foreground threshold,
τO =t C−1 , M ij =1[s ij ≥τ O], (3)
whereMis the resulting binary foreground mask.
The choice between C= 2 and C= 3 is calibrated once
on the support set at the beginning of each episode. Both
alternatives are evaluated on the support images, and the
configuration whose detections best reproduce the support
annotations is retained, preferring C= 2 in case of a tie.
The selected C remains fixed for the episode, while τO is
recomputed for every query image.
4.4. From Regions to Pineapple Instances
The binary mask identifies foreground patches but not indi-
vidual pineapples: a single plant can form several discon-
nected regions, and some regions may still be false detec-
tions. The support set therefore provides object-scale and
shape information for instance formation.
The median side length of the support boxes defines the
typical object scale δ on the G×G patch grid. A shape
cost compares each candidate region with the support-box
geometries. Let w denote the width and height of a candidate
region andw b those of support boxb:
dS (w) = minb∈BS ∥log(w/wb)∥2 , (4)
where lower values indicate greater similarity to the sup-
port geometry.
Each connected foreground region is a candidate instance.
Disconnected regions separated by fewer than δ cells are
merged when their union provides a better geometric match
than either region. The support-derived geometry therefore
reconnects fragmented responses from the same plant.
Each resulting region r is converted into a bounding box.
Let wAr and cAr denote the size and centre of the box en-
closing its foreground activation. Matched support regions
provide a median size correction ¯γ and normalized centre
offset ¯∆:
bwr =w Ar ⊙ ¯γ,
bcr =c Ar + ¯∆⊙ bwr. (5)
The corrected boxes are clipped to the image boundaries.
Finally, candidate boxes are filtered using support-calibrated
geometry and score prominence. The geometric acceptance
threshold is selected to maximize support-set box F1. A
region r that fails it is still kept when its score peak is promi-
nent, i.e. when

max(i,j)∈r sij −τ O

maxi,j sij −τ O

reaches the 15th percentile of the same ratio over the support
objects. Thus, the final detections are obtained entirely from
support-derived appearance and geometry, without query
annotations.
5. Experiments
5.1. Protocol
Every result is an average over five paired support draws. A
draw fixes one episode, a set of K support images and their
boxes, andallmethods are scored on exactly that episode,
so differences between methods never reflect differences
between support sets. In each episode, K support images
are sampled from the training partition, and all held-out test
images (PhenoBench: official validation set) serve as queries.
Each support and query image is one fixed 544×544 crop:
4

Table 1.Annotation budget per support size.Annotated boxes
contained in the K support images, i.e. the boxes every method re-
ceives, as the mean over the five paired support draws. Counts refer
to the 544×544 support crops used by all methods. PhenoBench
is evaluated up to K=20 since support images come from distinct
capture blocks, and its training split has only21.
Dataset1 2 4 10 20 40
Pineapple Plantation 3 9 20 48 99 200
AmodalAppleSize 3 7 15 32 65 135
PhenoBench 9 21 39 87 172 –
the central full-height crop of a 960×544 pineapple frame
(keeping boxes centred inside it and at least35% visible), the
1024×1024 content window of AmodalAppleSize, or the
full PhenoBench image, both resized to 544. No validation
or test annotation contributes to prototype estimation, thresh-
old configuration, geometric priors, or acceptance criteria.
Support images come from distinct capture blocks, so no
two shots observe the same plants; the Pineapple Plantation
validation split does not contribute to reported results. The
protocol evaluates K∈ {1,2,4,10,20,40} . Table 1 lists
the annotated boxes this gives (3to200on pineapple).
Evaluation reports IoU F1 under maximum-cardinality
one-to-one matching at IoU ≥0.5 (metric focused on lo-
calization), and count MAE (metric focused on counting
correctly). Two external few-shot detectors serve as base-
lines, PET-DINO [6] and GeCo2 [16], both run from released
weights with no target-domain fine-tuning. GeCo2 takes its
exemplars from the support images; following its release,
each image is rescaled so that the mean exemplar side is
80 pixels, and detections are kept above 0.33 of the highest
objectness score in the image. PET-DINO uses its default
score threshold of 0.3. Choosing their thresholds on the sup-
port images instead (leave one image out, no query labels)
is unstable for K≤2 and helps from K= 4 , mostly for
PET-DINO (pineapple RGB 0.21→0.48 at K= 40 ; Phe-
noBench RGB 0.32→0.51 at K= 4 ); GeCo2 changes by
at most 0.08. The pineapple ranking is unchanged at every
K and input, so we report the release defaults. Because
both are native RGB models, their depth rows receive the
predicted depth map replicated to three channels, and neither
has an RGB + D path. On one NVIDIA L40S (batch size 1),
encoder passes take 7–8 ms (AM-RADIO/DINOv2-B) and
Depth Anything v2 takes 40 ms; fitting a support set takes
0.2–9 s on four CPU threads ( K= 1 –40), and decoding a
query 2–16 ms. An RGB+D query costs about 70 ms, against
0.1–0.8s per query for PET-DINO and GeCo2.
5.2. Comparison with few-shot detectors
Table 2 reports the evaluation results. With DINOv2-B,
the proposed detector leads at every support size and in
every input condition, by 1.1× at K= 1 and by 1.5×
at K= 40 against the stronger competitor; AM-RADIO
GeCo2 Depth
RGB
PET-DINO
Ours (D2)
Ours (RA)
ground truth prediction
Figure 3. Qualitative comparison on the Pineapple Plantation
Dataset. Predictions from GeCo2, PET-DINO, and the proposed
method with AM-RADIO (RA) and DINOv2-B (D2) are shown
against the ground truth. All the methods usedK=40.
matches GeCo2 on RGB at K= 1 (0.318 vs. 0.319) and
leads elsewhere. The curves differ in shape as well as in
levels: the detector performance rises by 64% between one
and forty support images, PET-DINO plateaus near 0.21,
and GeCo2 rises only 16%, from 0.319 to 0.371. Figure 3
shows predictions atK= 40.
A slightly different trend can be observed for counting-
based metrics such as MAE, as shown in Figure 4. At
K= 40 , AM-RADIO achieves a lower MAE than DINOv2-
B with the RGB+D modality, whereas DINOv2-B is lower at
K= 2 –10 and the two are tied atK= 1 . Another important
observation is that, for both models, RGB+D improves over
5

Table 2.Pineapple test split, IoU F1. K denotes the number of annotated support images. Mean ± standard deviation over five paired
support draws; all methods receive identical episodes. Depth is predicted by Depth Anything v2; the two competitors are native RGB models,
so their depth rows feed the predicted depth map as a three-channel image.Boldmarks the best cell per input condition and support size.
Method Input1 2 4 10 20 40
PET-DINO [6] RGB 0.177±0.100 0.191±0.135 0.199±0.115 0.212±0.065 0.224±0.061 0.210±0.023
PET-DINO [6] Depth 0.142±0.100 0.153±0.117 0.095±0.076 0.091±0.051 0.079±0.026 0.071±0.019
GeCo2 [16] RGB 0.319±0.166 0.328±0.070 0.339±0.049 0.362±0.045 0.373±0.026 0.371±0.018
GeCo2 [16] Depth 0.204±0.157 0.188±0.085 0.178±0.056 0.158±0.025 0.147±0.014 0.138±0.003
Ours (AM-RADIO) RGB 0.318±0.104 0.442±0.061 0.481±0.057 0.520±0.020 0.485±0.036 0.530±0.027
Ours (AM-RADIO) Depth 0.250±0.130 0.372±0.052 0.439±0.064 0.503±0.029 0.462±0.023 0.495±0.022
Ours (AM-RADIO) RGB+D 0.322±0.046 0.466±0.048 0.499±0.053 0.555±0.017 0.511±0.039 0.563±0.024
Ours (DINOv2-B) RGB 0.349±0.130 0.513±0.072 0.530±0.043 0.558±0.043 0.554±0.041 0.573±0.028
Ours (DINOv2-B) Depth 0.317±0.096 0.463±0.060 0.500±0.037 0.542±0.017 0.511±0.033 0.529±0.017
Ours (DINOv2-B) RGB+D 0.362±0.108 0.541±0.037 0.555±0.013 0.567±0.011 0.546±0.033 0.565±0.016
0
2
4
6
8MAE ↓
2.34
2.86
2.19
1.35
1.54
1.21
1.25
1.43
1.19
1.20
1.23
1.13
1.27
1.30
1.28
1.23
1.24
1.22
DINOv2-B
1 2 4 10 20 40
K
0
2
4
6
8MAE ↓
2.79
2.39
2.19
1.41
1.58
1.41
1.49
1.67
1.44
1.21
1.42
1.17
1.23
1.34
1.15
1.18
1.34
1.10
AM-RADIO
RGB Depth RGB+D
Figure 4. Counting error of the proposed detector on the pineapple
test split against support size K, for both frozen backbones and all
three input conditions. Bars are the mean over 5 seeds and whiskers
are ±1 s.d. Both baselines are worse than every bar and are omitted
from the axis so that the conditions remain legible: over K=1 to
40, PET-DINO ranges 3.03–3.16 (RGB) and 2.88–3.34 (depth),
and GeCo2 ranges 2.96–3.25 (RGB) and 9.95–16.3 (depth); for
K≥2their RGB error is two to three times ours.
RGB-only in terms of MAE, whereas the same benefit is
consistent only for AM-RADIO for the IoU F1 score. In con-
trast, neither baseline counts better with more support: their
RGB MAE stays near 3, and their depth MAE grows withK.
The deterioration is particularly relevant for the Pineapple
Plantation Dataset, where accurate pineapple counting is an
important agricultural application.
A shuffled-depth control tests whether fusion benefits
Table 3.Shuffled-depth control, RGB + D, pineapple test. Each
query keeps its RGB features but takes depth from another capture
block, destroying only spatial correspondence. ∆ is signed so
positive favours aligned depth (aligned − shuffled for F1, shuffled
− aligned for MAE).meanandwinsspan all six support sizes,
includingK=2and10, not shown.
Encoder Depth1 4 20 40 mean wins
IoU F1↑
DINOv2-B aligned 0.362 0.555 0.546 0.565
shuffled 0.370 0.535 0.524 0.579
∆−0.008 +0.020 +0.022−0.013 +0.0093/6
AM-RADIO aligned 0.322 0.499 0.511 0.563
shuffled 0.302 0.437 0.488 0.538
∆ +0.020 +0.062 +0.023 +0.025 +0.0386/6
count MAE↓
DINOv2-B aligned 2.19 1.19 1.28 1.22
shuffled 2.80 1.28 1.33 1.21
∆ +0.60 +0.09 +0.05−0.01 +0.185/6
AM-RADIO aligned 2.19 1.44 1.15 1.10
shuffled 2.48 1.81 1.24 1.15
∆ +0.29 +0.37 +0.09 +0.06 +0.186/6
from aligned geometry rather than merely from a second
feature stream (Table 3). Query-depth features are shuffled
across capture blocks while preserving their distribution.
Alignment improves counting MAE for both encoders and
IoU F1 consistently for AM-RADIO, showing that spatially
corresponding depth carries useful instance information.
5.3. Component ablation and transfer domain
Two elements distinguish the proposed prototype and thresh-
old from a plain mean-difference prototype with a two-class
Otsu cut: whitening by the support covariance, and fitting the
number of score populations on the support set. Table 4 adds
them one at a time to the same pipeline. They contribute,
and they compose. Fitting the class count alone adds+0.038
IoU F1 at K= 40 , whitening alone +0.056, and together
+0.091. The gain from whitening increases with support,
from +0.014 at K= 1 to +0.056 at K= 40 , because the
6

Table 4.Component ablation(DINOv2-B, RGB, pineapple test).
IoU F1 over five paired draws. (a): neither contribution; (d): full
method; (e): fixed α= 0.15 instead of token-to-dimension shrink-
age. Bold: best per support size; shaded: final setting.
Prototype Otsu1 4 20 40
(a) cosineC=20.335 0.492 0.470 0.482
(b) cosine fitted0.3690.517 0.506 0.520
(c) whitenedC=20.349 0.505 0.516 0.538
(d) whitened fitted 0.349 0.530 0.554 0.573
(e) whitened α fitted 0.281 0.525 0.553 0.572
5. + prominent score peak
4. + geometry acceptance threshold
3. + size correction, centre offset
2. + disconnected regions merged

  1. Otsu binarization, connected regions 0.356 4.46
    0.465 2.48
    0.468 2.37
    0.380 1.70
    0.513 1.44
    IoU F1 ↑ MAE ↓
    Figure 5.Decoder ablation, DINOv2-B, RGB, pineapple test.
    Each row adds one stage of Section 4.4; the bold row is the full
    decoder. Bars show IoU F1 (blue,↑) and count MAE (orange, ↓),
    averaged over five draws and allK; each segment has its own scale.
    covariance it inverts is better estimated as tokens accumulate,
    whereas the fitted class count helps right from the first shot.
    Row (e) isolates the shrinkage rule: replacing the token-to-
    dimension weight with a fixed α=0.15 costs 0.068 IoU F1
    at K= 1 . This is the regime where a one-image covariance
    is underdetermined and a fixed weight under-regularises it.
    The instance decoder is ablated in the same way (Fig-
    ure 5): starting from the connected regions of the Otsu mask,
    each support-derived stage of Section 4.4 is added in turn
    (IoU F1 and MAE averaged over K). Merging disconnected
    regions gives the largest gain (0.356 to 0.465 IoU F1, 4.46
    to 2.48 MAE), and the size and centre correction adds lit-
    tle. The geometry acceptance threshold alone lowers IoU
    F1 to 0.380 while reducing MAE, because it also rejects
    true detections; the prominent-peak criterion recovers them,
    reaching 0.513 IoU F1 and 1.44 MAE. Table 5 isolates the
    frozen encoder: replacing DINOv2-B with an ImageNet-
    supervised ResNet-50 lowers IoU F1 at every support size,
    yet on pineapple the same pipeline still outperforms the
    strongest baseline from K=4 onward (0.493 vs. 0.371 at
    K=40), so the gains do not come from the foundation-model
    features alone.
    The transfer beyond the aerial pineapple domain is eval-
    uated under the same protocol on AmodalAppleSize [7], a
    ground-level RGB+D orchard dataset with heavy occlusion,
    and on PhenoBench [ 26], an aerial crop/weed benchmark
    with crops as the target class. PhenoBench has no depth,
    and the sensor depth released with AmodalAppleSize is
    valid for only 64% of pixels, so both use depth predicted
    by Depth Anything 3 [ 12] (Table 6), whereas pineapple
    Table 5.Frozen-encoder ablation (RGB IoU F1).Mean over five
    paired support draws. Our pipeline uses DINOv2-B or ImageNet-
    supervised ResNet-50 [8] (layer 3, 32×32 grid) without modifica-
    tion. The strongest baseline per dataset is included; bold marks the
    best score per dataset and support size.
    Method1 4 20 40
    Pineapple (aerial)
    Ours, DINOv2-B0.349 0.530 0.554 0.573
    Ours, ResNet-50 0.164 0.351 0.436 0.493
    GeCo2 (strongest baseline) 0.319 0.339 0.373 0.371
    Table 6.The same protocol on three benchmarks.IoU F1, mean
    over five paired support draws, with standard deviation shown in
    smaller type.Ours (D2)andOurs (RA)correspond to DINOv2-B
    and AM-RADIO, respectively. Depth: Depth Anything v2 [ 29]
    (pineapple), Depth Anything 3 [ 12] (others). Dashes denote un-
    available RGB + D settings.Boldindicates the best result within
    each dataset and column. Shaded rows denote the proposed meth-
    ods.
    RGB Depth RGB + D
    MethodK4K20K4K20K4K20
    Pineapple (aerial)
    PET-DINO 0.199±.110.224±.060.095±.070.079±.02– –
    GeCo2 0.339±.040.373±.020.178±.050.147±.01– –
    Ours (D2) 0.530±.04 0.554±.04 0.500±.03 0.511±.03 0.555±.01 0.546±.03
    Ours (RA) 0.481±.05 0.485±.03 0.439±.06 0.462±.02 0.499±.05 0.511±.03
    AmodalAppleSize (ground-level)
    PET-DINO0.749±.010.769±.000.285±.030.214±.04– –
    GeCo2 0.644±.040.642±.010.173±.020.170±.00– –
    Ours (D2) 0.414±.06 0.442±.04 0.237±.04 0.245±.04 0.410±.05 0.446±.03
    Ours (RA) 0.402±.06 0.437±.04 0.156±.03 0.209±.01 0.415±.03 0.441±.03
    PhenoBench (aerial)
    PET-DINO 0.317±.110.228±.040.515±.070.476±.03– –
    GeCo20.518±.010.480±.000.534±.030.475±.02– –
    Ours (D2) 0.369±.02 0.422±.01 0.345±.07 0.370±.02 0.339±.05 0.434±.01
    Ours (RA) 0.318±.02 0.406±.01 0.358±.06 0.389±.01 0.378±.03 0.437±.01
    keeps the Depth Anything v2 [ 29] maps released with its
    dataset. Recomputing the pineapple depth with Depth Any-
    thing 3 changes RGB+D IoU F1 by 0.00 (DINOv2-B) and
    −0.02 (AM-RADIO) on average. The resulting transfer re-
    mains domain-dependent. On PhenoBench RGB, GeCo2 is
    the strongest method at K=4 and K=20, but the proposed
    detector is the only evaluated method whose RGB perfor-
    mance improves substantially with additional support (0.369
    to 0.422 for DINOv2-B, while GeCo2 drops from 0.518 to
    0.480). More importantly for the aerial setting, depth alone
    preserves roughly 90% or more of the RGB IoU F1 of both
    encoders on Pineapple and PhenoBench, despite discarding
    appearance. RGB+D also often improves over RGB alone;
    on PhenoBench at K=20, fusion improves both encoders
    (0.434 and 0.437), narrowing the gap to GeCo2. Collectively,
    the results show that geometry offers a complementary signal
    for aerial imagery.
    Dataset-specific object statistics explain the ranking dif-
    ferences. Pineapple crowns are relatively uniform in size
    7

(median 6.9 grid cells; 2.6× variation), so support-derived
geometry transfers well across queries. AmodalAppleSize is
harder because apples are heavily occluded and annotated
with amodal boxes, while PhenoBench has much larger scale
variation (13.9×) and many sub-cell objects (24%), making
a single support-derived geometry unreliable. GeCo2 bene-
fits there from exemplar rescaling. Conversely, PET-DINO
and GeCo2 are weakest on pineapple, where visually sim-
ilar surrounding foliage makes prompting alone less effec-
tive. Our method benefits from re-estimating the prototype,
threshold, and geometry from each support set.
6. Conclusion
We presented a training-free detector that converts dense
features from frozen visual foundation models directly into
detections, without fine-tuning, a learned head, or exter-
nal proposals. On our leakage-aware Pineapple Plantation
Dataset, it improves with additional support and reaches
1.5× the IoU F1 of the strongest baseline at K=40. With
DINOv2-B, predicted depth alone retains 92% of RGB IoU
F1 at K=40, while RGB+depth fusion improves counting
MAE for both encoders. Experiments on PhenoBench and
AmodalAppleSize show that transfer is domain-dependent
and sensitive to depth quality: the proposed detector
is strongest when objects span several feature-grid cells
and share a consistent geometry, as pineapple crowns do,
while the prompt-based baselines remain stronger for heav-
ily occluded fruit and for plants of widely varying size.
These results establish frozen dense representations as a
promising basis for annotation-efficient agricultural detec-
tion.
References
[1] Lev Ayzenberg, Raja Giryes, and Hayit Greenspan. Proto-
SAM: One-shot medical image segmentation with founda-
tional models.arXiv preprint arXiv:2407.07042, 2024. 2
[2] Adrian Bulat et al. FS-DETR: Few-shot DEtection TRans-
former with prompting and without re-training. InProceed-
ings of the IEEE/CVF ICCV, pages 11793–11802, 2023. 2
[3] Mathilde Caron et al. Emerging properties in self-supervised
vision transformers. InProceedings of the IEEE/CVF ICCV,
2021. 2
[4] Fabian Fallas-Moya et al. Object detection in pineapple fields
drone imagery using few shot learning and the Segment Any-
thing Model. In2023 International Conference on Machine
Learning and Applications (ICMLA). IEEE, 2023. 2
[5] Fabian Fallas-Moya et al. Squeeze every bit of insight: Lever-
aging few-shot models with a compact support set for domain
transfer in object detection from pineapple fields. InCLEI,
2025. 2
[6] Weifu Fu et al. PET-DINO: Unifying visual cues into Ground-
ing DINO with prompt-enriched training. InProceedings of
the IEEE/CVF CVPR, pages 13039–13048, 2026. 2, 5, 6
[7] Jordi Gené-Mola et al. AmodalAppleSize_RGB-D dataset:
RGB-D images of apple trees annotated with modal and
amodal segmentation masks for fruit detection, visibility and
size estimation.Data in Brief, 52:110000, 2024. 7, 11
[8] Kaiming He et al. Deep residual learning for image recog-
nition. InProceedings of the IEEE CVPR, pages 770–778,
2016. 7
[9] Greg Heinrich et al. RADIOv2.5: Improved baselines for
agglomerative vision foundation models. InProceedings of
the IEEE/CVF CVPR, pages 22487–22497, 2025. 2
[10] Andreas Kamilaris et al. A review of the use of convolutional
neural networks in agriculture.The Journal of Agricultural
Science, 156(3):312–322, 2018. 1, 2
[11] Bingyi Kang et al. Few-shot object detection via feature
reweighting. InProceedings of the IEEE/CVF ICCV, pages
8420–8429, 2019. 2
[12] Haotong Lin et al. Depth Anything 3: Recovering the visual
space from any views. InICLR, 2026. 7
[13] Yang Liu et al. Matcher: Segment anything with one shot
using all-purpose feature matching. InICLR, 2024. 2
[14] Maxime Oquab et al. DINOv2: Learning robust visual fea-
tures without supervision.arXiv preprint arXiv:2304.07193,
2023. 1, 2
[15] Nobuyuki Otsu. A threshold selection method from gray-
level histograms.IEEE Transactions on Systems, Man, and
Cybernetics, 9(1):62–66, 1979. 2, 4
[16] Jer Pelhan et al. Generalized-scale object counting with grad-
ual query aggregation. InAAAI, 2026. 2, 5, 6
[17] Mike Ranzinger et al. AM-RADIO: Agglomerative vision
foundation model – reduce all domains into one. InPro-
ceedings of the IEEE/CVF CVPR, pages 12490–12500, 2024.
2
[18] Joseph Redmon et al. You only look once: Unified, real-time
object detection. InProceedings of the IEEE CVPR, 2016. 2
[19] Shaoqing Ren et al. Faster R-CNN: Towards real-time object
detection with region proposal networks. InNeurIPS, 2015.
2
[20] Inkyu Sa et al. DeepFruits: A fruit detection system using
deep neural networks.Sensors, 16(8):1222, 2016. 1, 2
[21] Oriane Siméoni et al. Localizing objects with self-supervised
transformers and no labels.arXiv preprint arXiv:2109.14279,
2021. 2
[22] Jake Snell et al. Prototypical networks for few-shot learning.
InNeurIPS, 2017. 2
[23] Maxim Tkachenko et al. Label Studio: Data labeling software,
2020–2025. 2
[24] Xin Wang et al. Frustratingly simple few-shot object detec-
tion. InProceedings of the 37th International Conference on
Machine Learning, 2020. 2
[25] Yangtao Wang et al. Self-supervised transformers for unsuper-
vised object discovery using normalized cut. InProceedings
of the IEEE/CVF CVPR, 2022. 2
[26] Jan Weyler et al. PhenoBench: A large dataset and bench-
marks for semantic image interpretation in the agricultural
domain.IEEE Transactions on Pattern Analysis and Machine
Intelligence, 46(12):9583–9594, 2024. 7, 11
[27] Danny Xie-Li et al. Simple object detection framework with-
out training. In2024 IEEE 6th International Conference on
BioInspired Processing (BIP), pages 1–6. IEEE, 2024. 2
8

[28] Danny Xie-Li et al. PineSORT: A simple online real-time
tracking framework for drone videos in agriculture. InPro-
ceedings of the IEEE/CVF CVPR Workshops, 2025. 2
[29] Lihe Yang et al. Depth Anything V2, 2024. 2, 7
[30] Xinyu Zhang et al. Detect everything with few examples. In
CoRL, pages 3986–4004. PMLR, 2025. 2
9

Decoding Frozen Vision Representations for Training-Free Few-Shot
Pineapple Detection
Supplementary Material
A. AM-RADIO heads
1 2 4 10 20 40
support images K
0.25
0.30
0.35
0.40
0.45
0.50
0.55
0.60IoU F1
DINOv2-B
AM-RADIO
RADIO → DINOv2
RADIO → CLIP
RADIO → SigLIP
RADIO → SAM
Figure 6.Six frozen readout spaces, RGB, pineapple test. The
plain DINOv2-B backbone leads at every support size; AM-
RADIO’s distilled teacher heads neither help nor collapse, spanning
0.51–0.55 atK=40.
Our pipeline is agnostic to the choice of frozen en-
coder; accordingly, we evaluate it across six readout spaces:
DINOv2-B, the AM-RADIO backbone, and AM-RADIO’s
four distilled teacher heads (Figure 6). DINOv2-B achieves
the highest IoU F1 score at every support size, while the
four teacher heads fall within a very small margin of the
AM-RADIO backbone at K= 40 . These results are con-
sistent with the nature of these representation spaces. The
AM-RADIO backbone jointly encodes information distilled
from the four teacher spaces, which may explain why the
individual teacher heads perform slightly below it in this use
case.
Predicted depth alone is nearly as good as RGB for F1
score, and for MAE with DINOv2-B it stays within 0.04
of RGB for K≥10 .Depth reaches 0.529 against 0.573
at K=40, and 92–97% of the RGB score for every K≥4
in Table 2 (see also Figure 7). Although this is a monoc-
ular estimate produced from the same image rather than a
measurement, a detector built on it alone recovers almost all
of the accuracy. The estimator evidently concentrates the
crown/canopy boundary into a channel where it survives our
prototype and threshold better than the raw appearance does.
For MAE, Figure 4 shows that depth alone stays close to
RGB for DINOv2-B but trails it for AM-RADIO. RGB+D
gives the lowest MAE of the three inputs at every K except
K= 20 for DINOv2-B and except K= 2 for AM-RADIO,
0.0
0.2
0.4
0.6IoU F1
RGB
0.0
0.2
0.4
0.6IoU F1
Depth
1 2 4 10 20 40
support images K
0.0
0.2
0.4
0.6IoU F1
both competitors are RGB-only
RGB + Depth
Ours (DINOv2-B)
Ours (AM-RADIO)
PET-DINO
GeCo2
Figure 7.Pineapple test split.Detection quality (IoU F1, higher
is better) against the number of support images for RGB, depth,
and RGB+depth inputs. Bands are ±1 standard deviation over the
five paired draws; the proposed detector appears on both frozen
encoders (solid) against the two competitors (dashed). Performance
generally increases with additional support, although the gains are
not monotonic for every encoder and input condition. DINOv2-B
rises from 0.349 to 0.573 IoU F1 on RGB, whereas PET-DINO is
flat and GeCo2 improves only slightly on RGB ( 0.319 to 0.371)
and degrades on depth.
and at K= 40 AM-RADIO with RGB+D gives the lowest
MAE of both encoders (1.10).
10

GeCo2 DepthRGBPET-DINOOurs (D2) Ours (RA)
ground truth prediction
Figure 8. Qualitative comparison on the AmodalAppleSize [ 7]
dataset. Predictions from GeCo2, PET-DINO, and the proposed
method with AM-RADIO (RA) and DINOv2-B (D2) are shown
against the ground truth. All the methods usedK=20.
GeCo2 DepthRGBPET-DINOOurs (D2) Ours (RA)
ground truth prediction
Figure 9. Qualitative comparison on the PhenoBench [26] dataset.
Predictions from GeCo2, PET-DINO, and the proposed method
with AM-RADIO (RA) and DINOv2-B (D2) are shown against the
ground truth. All the methods usedK=20.
11

论文原文与出版信息

arXiv
查看论文原文

继续探索