# OpenMMLab

**OpenMMLab** 是一个面向计算机视觉及相关深度学习研究的开源项目家族，基于 PyTorch 构建，以一系列面向特定任务的工具箱形式组织，如 [MMDetection](https://www.edgepedia.org/zh/mmdetection)、MMPose 和 MMSegmentation。2018 年，[商汤科技](https://www.edgepedia.org/zh/sensetime)与香港中文大学联合实验室——多媒体实验室（MMLab）创立了 OpenMMLab，并宣称其目标是促进学术交流、提升算法的可复现性。<sup>[1](https://www.sensetime.com/en/news/54517)</sup> 自 2018 年 10 月首次发布以来，该项目已发布 30 多个视觉库，实现 300 多种算法，并公开 2,000 多个预训练模型。<sup>[2](https://github.com/open-mmlab)</sup> 商汤科技 2023 年向香港交易所提交的文件将 OpenMMLab 描述为一个开源计算机视觉框架，其各代码仓库在 GitHub 上共获得 87,000 颗星。<sup>[3](https://www1.hkexnews.hk/listedco/listconews/sehk/2023/0925/2023092500451.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 创立 | 2018 年，由商汤科技与香港中文大学联合实验室多媒体实验室创立<sup>[1](https://www.sensetime.com/en/news/54517)</sup> |
| 规模 | 自 2018 年 10 月以来，30 多个视觉库、300 多种算法、2,000 多个预训练模型<sup>[2](https://github.com/open-mmlab)</sup> |
| 基础库 | MMEngine 负责训练与评估；MMCV 提供神经网络算子和数据变换<sup>[2](https://github.com/open-mmlab)</sup> |
| 旗舰工具箱 | MMDetection，一个目标检测工具箱，源自 MMDet 团队的代码库，该团队曾获 2018 年 COCO 检测挑战赛检测赛道冠军<sup>[4](https://arxiv.org/abs/1906.07155)</sup> |
| 仓库数量 | open-mmlab GitHub 组织下共有 54 个公开仓库<sup>[5](https://github.com/orgs/open-mmlab/repositories)</sup> |
| 许可证 | 核心工具箱（包括 MMDetection 和 MMCV）采用 Apache 2.0 许可证<sup>[6](https://github.com/open-mmlab/mmdetection)</sup> |

## 基础库

两个库支撑着整个项目。**MMEngine** 提供通用的训练与评估引擎，包括控制训练、验证和测试循环的 runner、支持[梯度裁剪](https://www.edgepedia.org/zh/gradient-clipping)和混合精度训练的优化器封装，以及钩子（hook）系统。<sup>[2](https://github.com/open-mmlab)</sup><sup> • </sup><sup>[7](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/user_guides/config.md)</sup> **MMCV** 提供各工具箱共用的神经网络算子和数据变换。<sup>[2](https://github.com/open-mmlab)</sup>

该生态系统的一个显著特点是其配置系统。所有 OpenMMLab 仓库均使用 MMEngine 的配置系统，该系统模块化并支持继承：配置文件通过 `_base_` 字段声明基础文件，仅覆盖发生变化的字段，因此可以通过继承已有方法（如 Faster R-CNN）并修改少量字段来构建新实验。<sup>[7](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/user_guides/config.md)</sup> 配置文件名遵循五段式命名约定，编码算法、模型组件、训练设置以及训练和测试数据集，例如 `mask-rcnn_r50-caffe_fpn_poly-1x_coco`。<sup>[7](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/user_guides/config.md)</sup>

## MMDetection 与模型库

MMDetection 是首个也是最突出的工具箱，由陈恺、王佳琦、庞江淼及多媒体实验室团队的同事在 2019 年的一篇论文中进行了描述。它包含目标检测和实例分割方法及相关组件与模块，发表时为 200 多个网络模型提供了权重。论文还报告了对不同方法、组件和超参数的基准测试研究。<sup>[4](https://arxiv.org/abs/1906.07155)</sup> 该工具箱支持目标检测、实例分割、全景分割和半监督目标检测等检测任务，并实现了从 Fast R-CNN、Faster R-CNN、SSD、[RetinaNet](https://www.edgepedia.org/zh/retinanet) 到 DETR 系列 Transformer、DINO、GLIP 以及自研的 RTMDet 等架构。<sup>[6](https://github.com/open-mmlab/mmdetection)</sup>

模型库使用分布式训练在 `coco_2017_train` 上训练所有模型，并在 `coco_2017_val` 上测试，GPU 显存报告为 8 块 GPU 上 `torch.cuda.max_memory_allocated()` 的最大值。推理时间涵盖网络前向传播和后处理，但不包括数据加载，使用 `benchmark.py` 脚本在 2,000 张图像上取平均值。<sup>[8](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/model_zoo.md)</sup>

## 与 Detectron2 的基准对比

MMDetection 的文档包含与 [Detectron2](https://www.edgepedia.org/zh/detectron2)（Facebook 人工智能研究院的检测库）的直接对比，在同一台机器上运行，配备 8 块 NVIDIA Tesla V100（32G）GPU、Intel Xeon Gold 6148 CPU、PyTorch 1.4 和 CUDA 10.1。1x 调度下的精度接近：Faster R-CNN 在 MMDetection 中达到 38.0 box AP，而 Detectron2 为 37.9；[Mask R-CNN](https://www.edgepedia.org/zh/mask-r-cnn) 分别为 38.8 和 35.4（边界框和掩码），对比 38.6 和 35.2；RetinaNet 为 37.0 对比 36.5。<sup>[8](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/model_zoo.md)</sup>

训练和推理速度因模型而异。在每次迭代的训练秒数上，Detectron2 在三个模型上均略快（例如 Faster R-CNN 为 0.210 对比 0.216）。在单 GPU 纯推理速度上，Detectron2 在 Faster R-CNN（25.6 对比 22.2 img/s）和 Mask R-CNN（22.5 对比 19.6 img/s）上更快，而 MMDetection 在 RetinaNet 上更快（20.6 对比 17.8 img/s）。<sup>[8](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/model_zoo.md)</sup> 另一张吞吐量表格（数据复制自 Detectron2 项目）将 Mask R-CNN 实现排名为 Detectron2 62 img/s、MMDetection 61 img/s，领先于 maskrcnn-benchmark（53）、tensorpack（50）、simpledet（39）、Detectron（19）和 matterport/Mask_RCNN（14）。<sup>[8](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/model_zoo.md)</sup>

## 版本历史与兼容性

MMDetection 2.0 是一次重大重构，破坏了与 1.x 的兼容性：在两个版本中使用相同模型权重进行推理会产生不同结果，因此 2.0 对所有模型重新进行了基准测试。差异集中在四个方面：坐标系、代码库约定、训练超参数和模块化设计。新坐标系将左上角像素的中心视为 (0, 0)，与 Detectron2 一致，并将 COCO 标注坐标解释为范围在 [0, width] 或 [0, height] 内。<sup>[9](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/notes/compatibility.md)</sup> 3.x 版本随后将工具箱迁移到 MMEngine 上，主分支支持 PyTorch 1.8 或更高版本。<sup>[6](https://github.com/open-mmlab/mmdetection)</sup>

## 更广泛的工具箱家族

除检测之外，该组织的 54 个仓库覆盖了大多数视觉任务和部分非视觉任务。<sup>[5](https://github.com/orgs/open-mmlab/repositories)</sup> 代表性工具箱包括用于姿态估计的 MMPose、用于视频理解的 MMAction2、用于语义分割的 MMSegmentation、用于基于激光雷达的 3D 检测及通用 3D 检测的 MMDetection3D、用于旋转目标检测的 MMRotate、用于文本检测、识别和关键信息提取的 MMOCR、用于生成模型的 MMagic，以及用于部署 OpenMMLab 算法的 MMDeploy。<sup>[6](https://github.com/open-mmlab/mmdetection)</sup><sup> • </sup><sup>[10](https://github.com/open-mmlab/mmocr)</sup> 该组织还托管了传统视觉之外的项目，例如 Amphion——一个用于音频、音乐和语音生成的工具包，在 GitHub 上约有 10,000 颗星，以及用于基于激光雷达的 3D 目标检测的 OpenPCDet。<sup>[5](https://github.com/orgs/open-mmlab/repositories)</sup>

**RTMDet** 展示了这些工具箱如何承载当前研究。它于 2022 年发布，是一族全卷积单阶段检测器，报告在 COCO 目标检测上达到 52.8 AP，速度 322 FPS（TensorRT FP16，批大小 1，RTX 3090），在 COCO 实例分割上达到 44.6 AP，在 DOTA 旋转检测上单尺度达到 78.9 AP、多尺度达到 81.3 AP。<sup>[6](https://github.com/open-mmlab/mmdetection)</sup> 其代码和模型在 MMDetection 3.x 配置树中发布，配套论文将这一设计描述为一项实证研究，旨在超越 YOLO 系列，同时保持对实例分割和旋转目标检测的可扩展性。<sup>[11](https://arxiv.org/abs/2212.07784)</sup>

## References

1. [SenseTime Gathers Global Innovators to Explore an AI-Powered Future, SenseTime](https://www.sensetime.com/en/news/54517)
2. [OpenMMLab organization on GitHub](https://github.com/open-mmlab)
3. [SenseTime Group Inc. HKEX filing (25 September 2023)](https://www1.hkexnews.hk/listedco/listconews/sehk/2023/0925/2023092500451.pdf)
4. [Kai Chen et al. (2019). MMDetection: Open MMLab Detection Toolbox and Benchmark. arXiv:1906.07155](https://arxiv.org/abs/1906.07155)
5. [open-mmlab repositories list, GitHub](https://github.com/orgs/open-mmlab/repositories)
6. [open-mmlab/mmdetection repository README, GitHub](https://github.com/open-mmlab/mmdetection)
7. [Learn about Configs, MMDetection documentation](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/user_guides/config.md)
8. [Benchmark and Model Zoo, MMDetection documentation](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/model_zoo.md)
9. [Compatibility notes, MMDetection documentation](https://github.com/open-mmlab/mmdetection/blob/main/docs/en/notes/compatibility.md)
10. [open-mmlab/mmocr repository, GitHub](https://github.com/open-mmlab/mmocr)
11. [RTMDet: An Empirical Study of Designing Real-Time Object Detectors. arXiv:2212.07784](https://arxiv.org/abs/2212.07784)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision datasets, software, and community › CV software and toolkits

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/openmmlab

English original: https://www.edgepedia.org/openmmlab
