DAMO-YOLO 与 EfficientDet
计算机视觉研究催生了许多针对不同现实需求的架构。有些框架优先考虑可扩展性,另一些则侧重实时推理速度。本文对比 DAMO-YOLO 和 EfficientDet 这两种采用不同目标检测方案的重要模型,分析它们的架构、比较基准测试表现,并说明为什么 Ultralytics YOLO26 是现代生产部署的有力选择。
架构概览#
这两种模型都旨在解决效率与准确率之间的权衡问题,但它们依靠截然不同的机制来实现目标。
DAMO-YOLO:通过神经架构搜索提升速度#
DAMO-YOLO 旨在突破实时检测的性能边界,它利用自动化搜索技术构建高度高效的网络,以适应低延迟环境。
DAMO-YOLO 详情:
- 作者: Xianzhe Xu、Yiqi Jiang、Weihua Chen、Yilun Huang、Yuan Zhang 和 Xiuyu Sun
- 组织: 阿里巴巴集团
- 日期: 2022-11-23
- arXiv: https://arxiv.org/abs/2211.15444v2
- GitHub: https://github.com/tinyvision/DAMO-YOLO
DAMO-YOLO 基于神经架构搜索 (NAS) 主干网络构建,同时优化速度和精度。它引入了 RepGFPN(重参数化广义特征金字塔网络),在保持高推理速度的同时增强特征融合。此外,其 ZeroHead 设计最大限度地减少了检测头通常带来的计算开销。该模型还采用 AlignedOTA(对齐最优传输分配)标签分配和知识蒸馏,因此即使最小的变体也能从较大的模型中学习丰富的表征。
EfficientDet:通过复合缩放实现可扩展性#
与优先追求速度的方法不同,EfficientDet 专注于针对各种计算预算实现系统化的可扩展性。
EfficientDet 详情:
- 作者: Mingxing Tan、Ruoming Pang 和 Quoc V. Le
- 组织:Google Brain
- 日期: 2019-11-20
- arXiv: https://arxiv.org/abs/1911.09070
- GitHub: https://github.com/google/automl/tree/master/efficientdet
EfficientDet 引入了 BiFPN(双向特征金字塔网络),能够快速融合多尺度特征。与通过任意增加层数或通道数来扩大架构的传统方法不同,EfficientDet 采用复合缩放方法,同时统一调整主干网络、特征网络以及边界框/类别预测网络的分辨率、深度和宽度。因此,该模型在发布时凭借高端硬件上的领先精度脱颖而出,同时也提供适用于受限环境的小型变体。
性能与指标对比#
并排比较后,精度与推理速度之间的取舍一目了然。下表列出了关键性能指标,展示了 DAMO-YOLO 的推理能力与 EfficientDet 模型系列的对比情况。
| 模型 | 尺寸 (像素) | mAPval50-95 | 速度 CPU ONNX (毫秒) | 速度 T4 TensorRT10 (ms) | 参数 (M) | FLOPs (B) |
|---|---|---|---|---|---|---|
| DAMO-YOLOt | 640 | 42.0 | - | 2.32 | 8.5 | 18.1 |
| DAMO-YOLOs | 640 | 46.0 | - | 3.45 | 16.3 | 37.8 |
| DAMO-YOLOm | 640 | 49.2 | - | 5.09 | 28.2 | 61.8 |
| DAMO-YOLOl | 640 | 50.8 | - | 7.18 | 42.1 | 97.3 |
| EfficientDet-d0 | 512 | 34.6 | - | 3.92 | 3.9 | 2.54 |
| EfficientDet-d1 | 640 | 40.5 | - | 7.31 | 6.6 | 6.1 |
| EfficientDet-d2 | 768 | 43.0 | - | 10.92 | 8.1 | 11.0 |
| EfficientDet-d3 | 896 | 47.5 | - | 19.59 | 12.0 | 24.9 |
| EfficientDet-d4 | 1024 | 49.7 | - | 33.55 | 20.7 | 55.2 |
| EfficientDet-d5 | 1280 | 51.5 | - | 67.86 | 33.7 | 130.0 |
| EfficientDet-d6 | 1280 | 52.6 | - | 89.29 | 51.9 | 226.0 |
| EfficientDet-d7 | 1536 | 53.7 | - | 128.07 | 51.9 | 325.0 |
EfficientDet-d7 的整体精度最高,适用于要求严苛的云端应用。DAMO-YOLO 系列在 GPU 硬件上以低得多的延迟实现了有竞争力的精度,因此更适合实时边缘部署。
用例与建议#
在 DAMO-YOLO 和 EfficientDet 之间做选择,取决于你的具体项目需求、部署限制和生态系统偏好。
何时选择 DAMO-YOLO#
DAMO-YOLO 适用于:
- 高吞吐量视频分析:在固定的 NVIDIA GPU 基础设施上处理高帧率视频流,且主要关注批量大小为 1 时的吞吐量。
- 工业制造生产线:在专用硬件上对 GPU 延迟有严格要求的场景,例如装配线上的实时质量检测。
- 神经架构搜索研究:研究自动架构搜索 (MAE-NAS) 和高效重参数化骨干网络对检测性能的影响。
何时选择 EfficientDet#
以下情况推荐使用 EfficientDet:
- Google Cloud 和 TPU 流程:基于 TensorFlow 的系统运行在 Google Cloud TPU 基础设施上,EfficientDet 的参考实现支持 TPU 训练。
- 复合缩放研究:侧重研究网络深度、宽度和分辨率平衡缩放效果的学术基准测试。
- 通过 LiteRT 进行移动端部署:需要导出为 LiteRT(原名 TensorFlow Lite),以用于 Android 或嵌入式 Linux 设备的项目。
何时选择 Ultralytics (YOLO26)#
对于大多数新项目,Ultralytics YOLO26在性能与开发体验之间实现了最佳平衡:
- 无 NMS 边缘部署:需要稳定、低延迟推理,同时不想处理非极大值抑制(NMS)后处理复杂性的应用。
- 仅使用 CPU 的环境:没有专用 GPU 加速的设备;在这类设备上,YOLO26n 的 CPU 推理速度比 YOLO11n 最高快 43%,优势明显。
- 小目标检测:适用于无人机航拍影像等具有挑战性的场景,或 IoT 传感器分析等需要 ProgLoss 和 STAL 大幅提升微小目标准确率的场景。
现代替代方案:Ultralytics YOLO26#
DAMO-YOLO 和 EfficientDet 是重要的学术里程碑,但实际部署通常需要更均衡、功能更丰富且对开发者更友好的方案。Ultralytics YOLO26 正是为此而设计。
YOLO26 于 2026 年 1 月发布,继承了前代模型的优势,包括 Ultralytics YOLO11 和 YOLOv8,并简化了目标检测模型的训练和部署方式。
YOLO26 采用原生端到端、无需 NMS 的设计(nms=False)。YOLO26 将非极大值抑制 (NMS) 从后处理中移除,解决了目标检测器长期存在的部署瓶颈,从而简化并加快部署流程,尤其适用于边缘硬件。
性能与灵活性#
YOLO26 提升了训练稳定性和精度,同时也提高了速度。它引入了 MuSGD 优化器,这是一种受 LLM 训练启发、结合 SGD 与 Muon 的混合方案,可加快收敛并提高训练效率。与 RT-DETR 等更大型的 Transformer 替代方案不同,YOLO26 的内存需求较低,因此可在消费级硬件上训练。
YOLO26 还加入了 ProgLoss + STAL,可提升小目标识别能力,适用于无人机航空影像和机器人等应用。为适配低功耗设备,YOLO26 移除了 Distribution Focal Loss (DFL),使 YOLO26n 的 CPU 推理速度相比 YOLO11n 最高提升 43%。
生态系统与易用性#
EfficientDet 等模型面临的最大挑战之一是集成流程复杂。Ultralytics Platform 则提供了维护完善的端到端生态系统。借助统一 API,用户可以轻松切换到检测、实例分割、图像分类、姿态估计和旋转边界框 (OBB)任务。
使用 Ultralytics Python 包训练 YOLO26 并运行推理,只需几行代码:
from ultralytics import YOLO
# 加载 YOLO26 nano 模型
model = YOLO("yolo26n.pt")
# 使用自定义数据集训练模型,同时将内存占用降至最低
results = model.train(data="coco8.yaml", epochs=50, imgsz=640)
# 运行超高速无 NMS 推理
predictions = model.predict("https://ultralytics.com/images/bus.jpg", nms=False)结论#
比较 DAMO-YOLO 和 EfficientDet,可以看出神经架构搜索与复合缩放各自的取舍;但生产工作还需要能够弥合学术研究与部署之间差距的工具。
对于重视易用性、活跃开源社区以及速度与精度良好平衡的开发者,Ultralytics YOLO26 是推荐选择。它无需 NMS 的架构、较低的训练开销,以及与 Ultralytics 生态系统的集成,使其成为你下一个计算机视觉项目的实用基础。
评论2
提出问题、分享结果,或帮助其他人。
UltralyticsAssistantUltralytics
👋 Hello, thank you for starting this discussion and for your interest in Ultralytics 🚀! For more details on model comparisons and best practices, we recommend checking out the Docs where you’ll find further insights on different architectures, metrics, and use cases.
If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us investigate.
If you have a custom training ❓ Question, please include all relevant information such as dataset examples, training logs, and verify you are following our Tips for Best Training Results.
Join our vibrant community! For real-time chat, visit Discord 🎧. For more in-depth discussions, check out Discourse, or join our Subreddit to connect with fellow users.
Upgrade
Please upgrade to the latest
ultralyticspackage and all requirements in a Python>=3.8 environment with PyTorch>=1.8 to ensure you’re using the most up-to-date features:pip install -U ultralyticsEnvironments
YOLO runs in the following up-to-date verified environments (all dependencies including CUDA/CUDNN, Python, and PyTorch preinstalled):
- Notebooks with free GPU:
- Google Cloud Deep Learning VM. See GCP Quickstart Guide
- Amazon Deep Learning AMI. See AWS Quickstart Guide
- Docker Image. See Docker Quickstart Guide
Status
If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.
This is an automated response to help guide you. An Ultralytics engineer will also review your discussion and assist you soon! 😊
Glenn JocherUltralytics(已编辑)Welcome to the discussion about DAMO-YOLO vs. EfficientDet! This is a great place to ask questions or share your experiences with either model.
The comparison highlights how DAMO-YOLO generally achieves higher mAP with faster TensorRT speeds, while EfficientDet offers strong CPU performance and parameter efficiency. For most users seeking a balance of performance, ease of use and versatility, Ultralytics models like YOLO26 provide significant advantages with our well-maintained ecosystem.
If you have specific questions about implementation details, performance in certain scenarios, or need guidance choosing between these architectures for your specific use case, please drop them here. The Ultralytics team regularly monitors these discussions and is happy to provide insights.
- Notebooks with free GPU: