提出通用文本引导计数模型,跨域准确点出目标数量。
Count Anything

- 用离散点定位代替密度图,分区域与像素两级计数
- 在220K图像、619类、1500万实例上实现跨域高精度计数
- 适合需要多领域可解释性计数的科研与工业场景
物体计数在不同领域和任务中仍呈碎片化状态,尽管通用视觉模型进展迅速。现有计数模型通常针对人群、车辆、细胞等特定场景,难以跨类别、视觉域、尺度和密度分布泛化。本文研究跨域文本引导计数任务:模型接收图像和自然语言查询,输出目标点集,其数量即为计数结果。该设定统一了类别条件计数与可解释的空间定位。为此,我们构建了CLOC数据集,整合六大视觉域(通用场景、遥感、病理学、细胞显微、农业、微生物)的公开数据,共包含约220,000张图像、619个类别、1500万实例。基于此,我们提出Count Anything通用模型,采用离散实例点进行双粒度枚举:区域级稀疏计数器为大而稀疏目标提供锚点,像素级稠密计数器通过密集点预测处理小而密集的弱边界目标。点中心监督策略支持异构标注学习,互补计数融合以无参数方式结合两者。大量实验表明,该模型在准确率和跨域泛化能力上均优于现有开放世界计数方法。
原文摘要 · Abstract (English)
Object counting remains fragmented across domain-specific datasets and task formulations, despite rapid progress in generalist vision models. Existing counting models are often tailored to scenarios such as crowds, vehicles, cells, crops, or remote-sensing objects, and thus struggle to generalize across categories, visual domains, object scales, and density distributions. In this paper, we study text-guided object counting across domains, where a model takes an image and a natural-language query as input and returns an instance-grounded set of target points whose cardinality gives the count. This formulation unifies category-conditioned counting with interpretable spatial localization. To support this setting, we construct CLOC, a Cross-domain Large-scale Object Counting dataset that reorganizes diverse public data sources into a unified benchmark. CLOC covers six visual domains: General Scene, Remote Sensing, Histopathology, Cellular Microscopy, Agriculture, and Microbiology, with about 220K images, 619 categories, and 15M object instances. Based on CLOC, we propose Count Anything, a generalist model for text-guided object counting. Unlike density-map-based methods, which dominate counting models, Count Anything adopts discrete instance points and performs dual-granularity instance enumeration. A Region-level Sparse Counter provides object-level anchors for large and sparse targets, while a Pixel-level Dense Counter handles small, crowded, and weakly bounded targets via dense point prediction. A point-centric supervision strategy enables learning from heterogeneous annotations, and Complementary Count Fusion combines both counters in a parameter-free manner. Extensive experiments show that Count Anything achieves strong accuracy and multi-domain generalization, outperforming existing open-world counting methods. Code is available at: https://github.com/Mengqi-Lei/count-anything.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。