arXiv:2504.16570cs.CV2025-04中稿 · WACV 2026] 18 page…被引 6

无需训练和标注,用自监督模型实现通用物体计数。

CountingDINO: A Training-free Pipeline for Class-Agnostic Counting using Unsupervised Backbones

  • 用自监督视觉骨干提取物体特征,不依赖标注数据。
  • 在FSC-147上优于无监督检测器基线,媲美甚至超越有监督方法。
  • 适合缺乏标注数据的场景,可直接部署于新任务。

类无关计数(CAC)旨在不依赖预定义类别的情况下估计图像中的物体数量。尽管现有基于示例的CAC方法在推理时具有灵活性,但仍严重依赖标注数据进行训练,限制了其在众多下游任务中的可扩展性和泛化能力。本文提出CountingDINO,首个无需训练的基于示例的CAC框架,采用完全无监督的特征提取器。具体而言,该方法利用仅含视觉信息的自监督骨干网络提取物体感知特征,并在整个流程中消除对标注数据的需求。推理时,通过ROI-Align从DINO特征中提取潜在物体原型,并将其作为卷积核生成相似性图,再经简单有效的归一化方案转化为密度图。我们在FSC-147基准上评估该方法,在相同无标签、无训练设置下,持续优于基于SOTA无监督目标检测器的基线。此外,其性能达到甚至超过依赖监督骨干的无训练方法、非无训练的无监督方法,以及多个全监督的SOTA方法。这表明,无标签、无训练的计数既可扩展又高效。代码:https://lorebianchi98.github.io/CountingDINO/

原文摘要 · Abstract (English)

Class-agnostic counting (CAC) aims to estimate the number of objects in images without being restricted to predefined categories. However, while current exemplar-based CAC methods offer flexibility at inference time, they still rely heavily on labeled data for training, which limits scalability and generalization to many downstream use cases. In this paper, we introduce CountingDINO, the first training-free exemplar-based CAC framework that exploits a fully unsupervised feature extractor. Specifically, our approach employs self-supervised vision-only backbones to extract object-aware features, and it eliminates the need for annotated data throughout the entire proposed pipeline. At inference time, we extract latent object prototypes via ROI-Align from DINO features and use them as convolutional kernels to generate similarity maps. These are then transformed into density maps through a simple yet effective normalization scheme. We evaluate our approach on the FSC-147 benchmark, where we consistently outperform a baseline based on an SOTA unsupervised object detector under the same label- and training-free setting. Additionally, we achieve competitive results -- and in some cases surpass -- training-free methods that rely on supervised backbones, non-training-free unsupervised methods, as well as several fully supervised SOTA approaches. This demonstrates that label- and training-free CAC can be both scalable and effective. Code: https://lorebianchi98.github.io/CountingDINO/.

物体计数无监督学习自监督DINO

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。