# Grounding DINO

**Grounding DINO** 是一个开放集目标检测模型，它将基于 Transformer 的检测器 DINO 与接地预训练相结合，使其能够检测由人类文本输入（如类别名称或指称表达）所指定的任意对象。该模型由 IDEA Research 开发，在刘世龙、曾昭阳、任天河等人于 2023 年 3 月 9 日提交至 arXiv 的论文中首次提出，该论文后来被 ECCV 2024 接收。<sup>[1](https://arxiv.org/abs/2303.05499)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> 开放集检测的核心思想是将语言引入闭集检测器，使其概念空间能够泛化到固定的训练类别列表之外。<sup>[1](https://arxiv.org/abs/2303.05499)</sup>

| 关键事实 | 详情 |
|---|---|
| 任务 | 基于图像加自由形式文本提示的开放集（开放词汇）目标检测；亦涵盖短语接地与指称表达理解<sup>[1](https://arxiv.org/abs/2303.05499)</sup><sup> • </sup><sup>[3](https://arxiv.org/abs/2401.02361)</sup> |
| 首次发布 | arXiv 2023 年 3 月 9 日（v1），截至 2024 年 7 月 19 日已修订至 v5；ECCV 2024<sup>[1](https://arxiv.org/abs/2303.05499)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> |
| 标志性结果 | COCO 零样本 52.5 AP（未使用 COCO 训练数据）；COCO 微调 63.0 AP；ODinW 零样本均值 26.1 AP<sup>[1](https://arxiv.org/abs/2303.05499)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> |
| 架构 | Swin 视觉骨干加 BERT 文本编码器、特征增强器、语言引导的查询选择、跨模态解码器；默认输出 900 个边界框<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> |
| 后续版本 | Grounding DINO 1.5（Pro 与 Edge，2024 年）；1.5 Pro 在超过 2000 万张带接地标注的图像上训练，COCO 零样本 54.3 AP，LVIS-minival 零样本 55.7 AP<sup>[5](https://arxiv.org/abs/2405.10300)</sup> |
| 代码 | Apache-2.0 许可下的官方 PyTorch 实现，约 10.7k GitHub 星标；Hugging Face 中受支持<sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> |

## 架构

Grounding DINO 将闭集检测器分为三个阶段，并在每个阶段应用紧耦合融合方案，使语言与视觉在整个网络中交互，而非仅在输出端交互。<sup>[1](https://arxiv.org/abs/2303.05499)</sup> 模型以图像和文本提示作为一对输入。[Swin Transformer](https://www.edgepedia.org/zh/swin-transformer) 骨干编码图像，基于 BERT 的语言编码器编码文本。<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup>

**特征增强器。** 第一个融合阶段通过对图像词元的可变形自注意力以及图像与文本词元之间的双向交叉注意力，对视觉和语言流进行协同训练，从而在早期融合两种模态。<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup>

**语言引导的查询选择。** 模型不使用一组固定的已学习的对象查询，而是将每个增强后的图像特征与所有文本词元进行打分，选择得分最高的特征，并用这些嵌入初始化检测器的查询。默认配置产生 900 个对象框，每个框携带跨所有输入词的相似度分数；最高相似度超过框阈值的框被保留，超过文本阈值的词成为预测标签。<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup>

**跨模态解码器。** 解码器在查询间交替进行自注意力与图像到文本、文本到图像的交叉注意力，共同精炼每个查询的空间与语义理解，并输出区域-文本对比 logits，其标签空间即为提示本身。<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup>

**子句提示。** 每个对象类别或指称表达被编码为独立的子句，使用块对角注意力掩码。这保持了多词概念的完整性，同时防止同一提示中短语之间的干扰。<sup>[4](https://learnopencv.com/fine-tuning-grounding-dino/)</sup> 模型还将包含属性与代词的指称表达作为其指称表达理解能力的一部分进行处理。<sup>[1](https://arxiv.org/abs/2303.05499)</sup><sup> • </sup><sup>[6](https://openreview.net/pdf/a6090ed72588f5361fc95693d72abd6131df2508.pdf)</sup>

## 性能

Grounding DINO 在三种设置下进行了评估：COCO 与 LVIS 上的基准测试、ODinW 野外基准测试，以及 RefCOCO/+/g 上的指称表达理解。它在 COCO 零样本迁移基准上达到 52.5 AP（即未使用任何 COCO 训练数据），并在发表时于 ODinW 零样本基准上创下 26.1 AP 的均值纪录。<sup>[1](https://arxiv.org/abs/2303.05499)</sup> 经过微调，它在 COCO 上达到 63.0 AP。<sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup> ECCV 补充材料报告称，Grounding DINO 即使没有直接的 LVIS 训练数据，也能取得有前景的 LVIS 性能。<sup>[7](https://www.ecva.net/papers/eccv_2024/papers_ECCV/papers/06319-supp.pdf)</sup>

## Grounding DINO 1.5

2024 年，IDEA Research 发布了 Grounding DINO 1.5，包含两个模型，旨在推进开放集检测的“Edge”（前沿/边缘）——这一命名既取推动边界之意，也指边缘设备部署。<sup>[5](https://arxiv.org/abs/2405.10300)</sup> **Grounding DINO 1.5 Pro** 是能力更强的模型，设计用于在广泛场景中实现更强的泛化；它扩展了架构规模，集成了增强的视觉骨干，并将训练数据扩展至超过 2000 万张带接地标注的图像。它在 COCO 上达到 54.3 AP，在 LVIS-minival 零样本迁移基准上达到 55.7 AP，均为发表时开放集检测的纪录，并在 ODinW 少样本设置上取得了当时的最佳结果。<sup>[5](https://arxiv.org/abs/2405.10300)</sup> **Grounding DINO 1.5 Edge** 是面向效率的模型，针对边缘部署中的更快速度进行了优化。<sup>[5](https://arxiv.org/abs/2405.10300)</sup> 后续的 1.6 版本也可通过 API 获取。<sup>[8](https://github.com/IDEA-Research/Grounding-DINO-1.5-API)</sup>

## 生态系统与应用

**Grounded SAM。** Grounding DINO 广泛与 Meta 的 Segment Anything Model（SAM）配合使用：Grounding DINO 提供文本驱动的边界框，以此作为条件让 SAM 生成实例掩码。Grounded SAM 2 将此扩展至使用 Grounding DINO、Florence-2 和 SAM 2 对视频中的任意对象进行检测、分割与跟踪。<sup>[9](https://github.com/idea-research/grounded-sam-2)</sup><sup> • </sup><sup>[2](https://github.com/IDEA-Research/GroundingDINO)</sup>

**部署。** NVIDIA 通过其 TAO Toolkit 分发商业许可、可训练的 Swin-Tiny Grounding DINO；1.1 版本是一个 1.93 GB 的包，在 V100 GPU 上批大小为 1。<sup>[10](https://catalog.ngc.nvidia.com/orgs/nvidia/tao/models/grounding_dino/-/version-history)</sup> 社区在 Python 之外也存在重新实现，包括一个 Rust 软件包，用 Swin 和 BERT 骨干、六层跨模态解码器以及选取得分最高的 900 个特征的语言引导的查询选择复现了 [Hugging Face](https://www.edgepedia.org/zh/hugging-face) 流水线。<sup>[11](https://docs.rs/rlx-grounding-dino/latest/rlx_grounding_dino/)</sup>

**应用研究。** 研究人员已在无需任务特定训练的领域中零样本应用该模型，包括牛口鼻部检测<sup>[12](https://arxiv.org/abs/2509.06427)</sup>以及机器人中的角铸件检测，在后者中，尽管其 mAP（平均精度均值，标准目标检测精度指标）低于微调的 SSD 模型，其未经事先训练的检测精度仍被认为具有实际意义。<sup>[13](https://www.mdpi.com/2079-9292/14/9/1887)</sup>

## 实践中的局限

零样本开放词汇检测在狭窄、定义明确的任务上无法与有监督的闭集检测器匹敌。在一项关于雅典遗产建筑类型分类的比较研究中，Grounding DINO 因词汇不匹配在零样本设置下得分很低；使用 LoRA 微调时因高假阳性约为 0.05 mAP@0.5；全量微调时约为 0.67 mAP@0.5，而有监督的 YOLO 模型约为 0.99。<sup>[14](https://www.mdpi.com/2571-9408/9/5/206)</sup> 一项针对包括 Grounding DINO、OWL-ViT 和 YOLO-World 在内的开放词汇检测器的鲁棒性评估考察了分布偏移下的性能。<sup>[15](https://arxiv.org/abs/2405.14874)</sup>

## References

1. [Shilong Liu et al. Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection. arXiv:2303.05499](https://arxiv.org/abs/2303.05499)
2. [IDEA-Research/GroundingDINO, official GitHub repository](https://github.com/IDEA-Research/GroundingDINO)
3. [An Open and Comprehensive Pipeline for Unified Object Grounding and Detection. arXiv:2401.02361](https://arxiv.org/abs/2401.02361)
4. [Fine-Tuning Grounding DINO: Open-Vocabulary Object Detection, LearnOpenCV](https://learnopencv.com/fine-tuning-grounding-dino/)
5. [Tianhe Ren et al. Grounding DINO 1.5: Advance the "Edge" of Open-Set Object Detection. arXiv:2405.10300](https://arxiv.org/abs/2405.10300)
6. [GroundSight: Augmenting Vision-Language Models with Grounding Information and De-hallucination, OpenReview](https://openreview.net/pdf/a6090ed72588f5361fc95693d72abd6131df2508.pdf)
7. [Grounding DINO, ECCV 2024 supplementary material](https://www.ecva.net/papers/eccv_2024/papers_ECCV/papers/06319-supp.pdf)
8. [IDEA-Research/Grounding-DINO-1.5-API, GitHub](https://github.com/IDEA-Research/Grounding-DINO-1.5-API)
9. [IDEA-Research/Grounded-SAM-2, GitHub](https://github.com/idea-research/grounded-sam-2)
10. [Grounding DINO, NVIDIA NGC catalog, version history](https://catalog.ngc.nvidia.com/orgs/nvidia/tao/models/grounding_dino/-/version-history)
11. [rlx-grounding-dino, docs.rs](https://docs.rs/rlx-grounding-dino/latest/rlx_grounding_dino/)
12. [When Language Model Guides Vision: Grounding DINO for Cattle Muzzle Detection. arXiv:2509.06427](https://arxiv.org/abs/2509.06427)
13. [Enhancing Intelligent Robot Perception with a Zero-Shot Detection Framework for Corner Casting, MDPI Electronics](https://www.mdpi.com/2079-9292/14/9/1887)
14. [Closed-Set vs. Open-Vocabulary Object Detectors for Urban Architectural Typology Classification, MDPI Heritage](https://www.mdpi.com/2571-9408/9/5/206)
15. [Open-Vocabulary Object Detectors: Robustness Challenges under Distribution Shifts. arXiv:2405.14874](https://arxiv.org/abs/2405.14874)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/grounding-dino

English original: https://www.edgepedia.org/grounding-dino
