YOLOX 与 PP-YOLOE+
设计稳健的计算机视觉流程时,选择合适的目标检测模型是一项关键决策。实时目标检测器领域竞争激烈,众多架构都在追求推理速度与检测精度之间的最佳平衡。这篇技术比较将评估两种知名模型 YOLOX 和 PP-YOLOE+,分析它们的架构设计、训练方法和性能指标,帮助开发者和研究人员为部署环境选择合适的工具。
架构创新与设计#
这两种模型都旨在解决早期 YOLO 版本中的特定痛点,但它们在速度与精度的权衡上采用了不同的方法。
YOLOX:连接研究与产业#
YOLOX 由 Zheng Ge、Songtao Liu、Feng Wang、Zeming Li 和 Jian Sun 在 Megvii 开发,于 2021 年 7 月 18 日发布。它通过全面采用无锚框设计,标志着 YOLO 系列的一次重大转变。你可以在官方 arXiv 论文中了解其基础研究,并在原始 YOLOX GitHub 仓库中查看源代码。
YOLOX 集成了解耦头,将分类任务与回归任务分开处理,从而显著加快训练收敛速度。此外,它还引入了 SimOTA 等先进的标签分配策略,用于动态分配正样本。这让模型效率更高,其最小尺寸版本适合计算资源严格受限的边缘 AI环境。
PP-YOLOE+:高性能工业检测#
PP-YOLOE+ 由 PaddlePaddle 作者团队于 2022 年 4 月 2 日在 Baidu 推出,是 PP-YOLO 系列的优化演进版本。PP-YOLOE+ 在arXiv 论文中有详细介绍,并与 Baidu 生态深度集成,需要使用 PaddlePaddle 框架。你可以在 PaddleDetection GitHub 仓库中找到该模型的配置。
PP-YOLOE+ 使用 CSPRepResNet 主干网络,并采用高效任务对齐头(ET-head)和任务对齐学习(TAL)。该架构在 COCO 数据集上取得了出色的平均精度均值(mAP),适合工业缺陷检测以及优先考虑精度、而非尽量减少依赖项的重型服务器端处理任务。
性能基准测试#
了解这些模型在不同规模下的表现对于部署至关重要。下表列出了关键指标,包括 mAP 和导出至 TensorRT 后的推理速度。
| 模型 | 尺寸 (像素) | mAPval50-95 | 速度 CPU ONNX (毫秒) | 速度 T4 TensorRT10 (ms) | 参数 (M) | FLOPs (B) |
|---|---|---|---|---|---|---|
| YOLOXnano | 416 | 25.8 | - | - | 0.91 | 1.08 |
| YOLOXtiny | 416 | 32.8 | - | - | 5.06 | 6.45 |
| YOLOXs | 640 | 40.5 | - | 2.56 | 9.0 | 26.8 |
| YOLOXm | 640 | 46.9 | - | 5.43 | 25.3 | 73.8 |
| YOLOXl | 640 | 49.7 | - | 9.04 | 54.2 | 155.6 |
| YOLOXx | 640 | 51.1 | - | 16.1 | 99.1 | 281.9 |
| PP-YOLOE+t | 640 | 39.9 | - | 2.84 | 4.85 | 19.15 |
| PP-YOLOE+s | 640 | 43.7 | - | 2.62 | 7.93 | 17.36 |
| PP-YOLOE+m | 640 | 49.8 | - | 5.56 | 23.43 | 49.91 |
| PP-YOLOE+l | 640 | 52.9 | - | 8.36 | 52.2 | 110.07 |
| PP-YOLOE+x | 640 | 54.7 | - | 14.3 | 98.42 | 206.59 |
在所有可比较的尺寸上,PP-YOLOE+ 的精度都高于 YOLOX;从 s 尺寸开始,它所需的 FLOPs 也更少,其中 PP-YOLOE+x 的整体精度最高。不过,YOLOX 提供 Nano 和 Tiny 等极轻量版本,非常适合低功耗微控制器和旧款移动硬件。
用例与建议#
选择 YOLOX 还是 PP-YOLOE+,取决于你的具体项目需求、部署限制和生态偏好。
何时选择 YOLOX#
YOLOX 适合以下场景:
- 无锚框检测研究:学术研究使用 YOLOX 简洁的无锚框架构作为基线,以试验新的检测头或损失函数。
- 超轻量级边缘设备:部署到微控制器或旧款移动硬件时,YOLOX-Nano 变体极小的体积(0.91M 个参数)至关重要。
- SimOTA 标签分配研究:研究项目用于探索基于最优传输的标签分配策略及其对训练收敛的影响。
何时选择 PP-YOLOE+#
以下情况推荐使用 PP-YOLOE+:
- 集成 PaddlePaddle 生态系统:已有基于百度 PaddlePaddle框架和工具构建基础设施的组织。
- Paddle Lite 边缘部署:部署到专门针对 Paddle Lite 或 Paddle 推理引擎进行了高度优化的推理内核的硬件上。
- 高精度服务端检测:在强大的 GPU 服务器上优先追求最高检测准确率,且不受框架依赖限制的场景。
何时选择 Ultralytics (YOLO26)#
对于大多数新项目,Ultralytics YOLO26在性能与开发体验之间实现了最佳平衡:
- 无 NMS 边缘部署:需要稳定、低延迟推理,同时不想处理非极大值抑制(NMS)后处理复杂性的应用。
- 仅使用 CPU 的环境: 没有专用 GPU 加速的设备;YOLO26 的 CPU 推理速度最高可提升 43%(YOLO26n 对比 YOLO11n),具有决定性优势。
- 小目标检测:具有挑战性的场景,例如无人机航拍图像或 IoT 传感器分析。在这些场景中,ProgLoss 和 STAL 可以提升微小目标的检测精度。
Ultralytics 的优势:认识 YOLO26#
YOLOX 和 PP-YOLOE+ 各有优势,但 AI 的快速发展要求工具既具备高精度,又易于使用。这正是 Ultralytics 模型,尤其是 Ultralytics YOLO26,胜过旧版研究代码库的地方。
YOLO26 于 2026 年 1 月发布,为现代目标检测及其他视觉任务树立了新标准,同时提供精简的开发者体验。
开发者为何选择 YOLO26#
- 端到端无 NMS 设计:在 YOLOv10 为 YOLO 模型引入的无 NMS 训练基础上,YOLO26 支持原生端到端推理。通过可选的一对一检测头(
nms=False)跳过 NMS 后处理,它能提供稳定的延迟,并简化边缘环境中的导出流程。 - 训练优化: MuSGD 优化器结合了 SGD 和 Muon(灵感来自 Moonshot AI 的 Kimi K2 等 LLM 方法),可提升训练稳定性和收敛速度。YOLO26 还采用 ProgLoss + STAL(渐进式损失与小目标感知标签分配)来改进小目标检测,这对涉及航拍图像和机器人的应用至关重要。
- 硬件效率:移除分布焦点损失(DFL)后,YOLO26 简化了检测头和导出计算图。YOLO26n 的 CPU 推理速度比 YOLO11n 最多快 43%,适合缺少专用 GPU加速的设备。
- 多功能性:PP-YOLOE+ 严格专注于检测,而 YOLO26 则统一支持多种任务。它针对实例分割采用专门的语义分割损失,使用残差对数似然估计(RLE)实现精准的姿态估计,并为有向边界框(OBB)采用专门的角度损失。
生态系统集成#
Ultralytics 无需安装复杂的框架。使用统一的 Python API 或直观的 Ultralytics Platform,只需几行代码就能训练、验证和导出模型。
from ultralytics import YOLO
# 加载 YOLO26 small 模型
model = YOLO("yolo26s.pt")
# 在自定义数据集上训练,同时最大限度减少 CUDA 显存开销
results = model.train(data="coco8.yaml", epochs=100, imgsz=640)
# 运行推理
predictions = model("https://ultralytics.com/images/bus.jpg")
# 原生导出为 ONNX,充分发挥无 NMS 架构的优势
model.export(format="onnx", nms=False)如果你正在评估 Ultralytics 生态中的其他稳健架构,YOLO11 仍是现有部署的可靠选择,而基于 Transformer 的 RT-DETR 则适合寻求注意力机制方案的用户。
总结#
在 YOLOX 和 PP-YOLOE+ 之间选择,通常取决于你的主要框架限制——你是更看重基于 PyTorch 的灵活性,还是与 Baidu 的 PaddlePaddle 深度集成。不过,对于计划构建新 AI 基础设施的组织,推荐使用 Ultralytics YOLO26。凭借可选的无 NMS 推理、轻量的内存占用和广泛的任务支持,YOLO26 能帮助团队构建快速、高效的计算机视觉应用。
评论6
提出问题、分享结果,或帮助其他人。
UltralyticsAssistantUltralytics
👋 Hello, thank you for sharing your interest in comparing YOLOX and PP-YOLOE+ 🚀!
For a detailed breakdown of performance, architecture, and use cases, you can explore our dedicated Compare YOLOX vs PP-YOLOE+ Guide. This resource provides valuable insights to help you choose the best model for your specific requirements.
If you have specific questions or need further assistance, please provide more details about your use case. For example:
- What type of dataset are you working with?
- Are there specific metrics or constraints you are prioritizing?
Join the Ultralytics community for more discussions and insights:
- Real-time chat? Join us on Discord 🎧.
- Prefer forum-style discussions? Check out Discourse.
- Or head over to our Subreddit to connect with other users.
Additionally, ensure you're using the latest version of the
ultralyticspackage for optimal performance and features. Upgrade with the following command:pip install -U ultralyticsThis is an automated response to assist you quickly, but don't worry—an Ultralytics engineer will review your discussion and provide further input soon. Thanks for being part of the community! 😊
Glenn JocherUltralytics(已编辑)@UltralyticsAssistant Thanks for the automated response.
@Amine-Torki You've raised a valid point about our documentation consistency. We're actively updating our comparison articles to reflect the latest models. The Ultralytics ecosystem now includes YOLO26 (our latest release) and YOLO11, both offering significant improvements over earlier models.
For those comparing YOLOX and PP-YOLOE+, both are solid anchor-free detectors, but Ultralytics YOLO26 provides advantages in terms of ecosystem integration, versatility across multiple vision tasks, and overall performance balance. Our documentation team is working to ensure all comparison pages accurately represent the current state of YOLO development.
Amine-Torki
"YOLOv8: The latest iteration in the YOLO series" Yeah another article written by ChatGPT, Ultralytics isn't what it used to be...
-1
Glenn JocherUltralytics(已编辑)@Amine-Torki thank you for your feedback. Our documentation is continuously improved by both the Ultralytics team and community contributions to ensure accuracy and relevance. For the latest advancements, check out YOLO26 and YOLO11, which showcase our ongoing commitment to innovation in computer vision.
Amine-Torki(已编辑)
Hi. My question is about why saying in this article "YOLOv8: The latest iteration in the YOLO series" when there is, as you just said, YOLO11 and YOLOv10. Since the Technical Comparison was last updated 1 month ago, it just make me think it was written by a llm with lack of knowledge/hallucination on the latest updates.
Glenn JocherUltralytics(已编辑)