Skip to content

Commit e929201

Browse files
lvhan028tpoisonooo
andauthored
[Docs] reorganize the documents in English and update the contents based on v0.5.0 status (#531)
* checkout qq group qrcode * update the cover image * update build doc * reorganize chapters * update readme * remove index of build on different platforms in readthedocs * update benchmark * update get started document in Chinese based on the prebuild package * update get_started * re-style benchmark * update get_started in zh_cn * update get_started in english * update get_started in english * update get_started in english * update get_started doc * update according to reviewer comments * update linker ci * fix(.github/scripts/check_doc_linker.py): skip code block * specify PYTHONPATH * update get_started * update diagram * rename some documents * fix according to reviewer comments Co-authored-by: tpoisonooo <[email protected]>
1 parent 908a69b commit e929201

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1099
-1308
lines changed

.github/scripts/doc_link_checker.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ def make_parser():
2424
def analyze_doc(home, path):
2525
print('analyze {}'.format(path))
2626
problem_list = []
27+
code_block = False
2728
with open(path) as f:
2829
lines = f.readlines()
2930
for line in lines:
31+
line = line.strip()
32+
if line.startswith('```'):
33+
code_block = not code_block
34+
continue
35+
36+
if code_block is True:
37+
continue
38+
3039
if '[' in line and ']' in line and '(' in line and ')' in line:
3140
all = pattern.findall(line)
3241
for item in all:

.github/workflows/check-doc-link.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ jobs:
1616
python-version: '3.7'
1717
- run: python3 .github/scripts/doc_link_checker.py --target docs/zh_cn
1818
- run: python3 .github/scripts/doc_link_checker.py --target README_zh-CN.md
19+
- run: python3 .github/scripts/doc_link_checker.py --target docs/en
20+
- run: python3 .github/scripts/doc_link_checker.py --target README.md

README.md

Lines changed: 51 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -23,82 +23,88 @@
2323
[![badge](https://github.com/open-mmlab/mmdeploy/workflows/build/badge.svg)](https://github.com/open-mmlab/mmdeploy/actions)
2424
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
2525
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/blob/master/LICENSE)
26-
[![issue resolution](https://isitmaintained.com/badge/resolution/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/issues)
27-
[![open issues](https://isitmaintained.com/badge/open/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/issues)
26+
[![issue resolution](https://img.shields.io/github/issues-closed-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
27+
[![open issues](https://img.shields.io/github/issues-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
2828

29-
## Introduction
3029

3130
English | [简体中文](README_zh-CN.md)
3231

33-
MMDeploy is an open-source deep learning model deployment toolset. It is
34-
a part of the [OpenMMLab](https://openmmlab.com/) project.
32+
## Introduction
33+
34+
MMDeploy is an open-source deep learning model deployment toolset. It is a part of the [OpenMMLab](https://openmmlab.com/) project.
3535

3636
<div align="center">
37-
<img src="resources/introduction.png" width="800"/>
37+
<img src="resources/introduction.png">
3838
</div>
3939

4040

41-
### Major features
41+
## Main features
4242

43-
- **Fully support OpenMMLab models**
43+
### Fully support OpenMMLab models
4444

45-
We provide a unified model deployment toolbox for the codebases in OpenMMLab. The supported codebases are listed as below, and more will be added in the future
46-
- [x] MMClassification
47-
- [x] MMDetection
48-
- [x] MMSegmentation
49-
- [x] MMEditing
50-
- [x] MMOCR
51-
- [x] MMPose
45+
The currently supported codebases and models are as follows, and more will be included in the future
46+
- [mmcls](docs/en/04-supported-codebases/mmcls.md)
47+
- [mmdet](docs/en/04-supported-codebases/mmdet.md)
48+
- [mmseg](docs/en/04-supported-codebases/mmseg.md)
49+
- [mmedit](docs/en/04-supported-codebases/mmedit.md)
50+
- [mmocr](docs/en/04-supported-codebases/mmocr.md)
51+
- [mmpose](docs/en/04-supported-codebases/mmpose.md)
52+
- [mmdet3d](docs/en/04-supported-codebases/mmdet3d.md)
53+
- [mmrotate](docs/en/04-supported-codebases/mmrotate.md)
5254

53-
- **Multiple inference backends are available**
55+
### Multiple inference backends are available
5456

55-
Models can be exported and run in different backends. The following ones are supported, and more will be taken into consideration
56-
- [x] ONNX Runtime
57-
- [x] TensorRT
58-
- [x] PPLNN
59-
- [x] ncnn
60-
- [x] OpenVINO
57+
Models can be exported and run in the following backends, and more will be compatible
6158

62-
- **Efficient and highly scalable SDK Framework by C/C++**
59+
| ONNX Runtime | TensorRT | ppl.nn | ncnn | OpenVINO | LibTorch | more |
60+
| ------------ | -------- | ------ | ---- | -------- | -------- | ---------------------------------------------- |
61+
| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | [benchmark](docs/en/03-benchmark/benchmark.md) |
6362

64-
All kinds of modules in SDK can be extensible, such as `Transform` for image processing, `Net` for Neural Network inference, `Module` for postprocessing and so on
6563

66-
## License
67-
68-
This project is released under the [Apache 2.0 license](LICENSE).
6964

70-
## Installation
65+
### Efficient and scalable C/C++ SDK Framework
7166

72-
Please refer to [build.md](https://mmdeploy.readthedocs.io/en/latest/build.html) for installation.
67+
All kinds of modules in the SDK can be extended, such as `Transform` for image processing, `Net` for Neural Network inference, `Module` for postprocessing and so on
7368

74-
## Getting Started
69+
## Get Started
7570

76-
Please see [getting_started.md](https://mmdeploy.readthedocs.io/en/latest/get_started.html) for the basic usage of MMDeploy. We also provide other tutorials for:
71+
Please read [getting_started.md](docs/en/get_started.md) for the basic usage of MMDeploy. We also provide tutoials about:
7772

78-
- [how to convert model](https://mmdeploy.readthedocs.io/en/latest/tutorials/how_to_convert_model.html)
79-
- [how to write config](https://mmdeploy.readthedocs.io/en/latest/tutorials/how_to_write_config.html)
80-
- [how to support new models](https://mmdeploy.readthedocs.io/en/latest/tutorials/how_to_support_new_models.html)
81-
- [how to measure performance of models](https://mmdeploy.readthedocs.io/en/latest/tutorials/how_to_measure_performance_of_models.html)
73+
* [Build](docs/en/01-how-to-build/build_from_source.md)
74+
* [Build from Docker](docs/en/01-how-to-build/build_from_docker.md)
75+
* [Build for Linux](docs/en/01-how-to-build/linux-x86_64.md)
76+
* [Build for Win10](docs/en/01-how-to-build/windows.md)
77+
* [Build for Android](docs/en/01-how-to-build/android.md)
78+
* [Build for Jetson](docs/en/01-how-to-build/jetsons.md)
79+
* User Guide
80+
* [How to convert model](docs/en/02-how-to-run/convert_model.md)
81+
* [How to write config](docs/en/02-how-to-run/write_config.md)
82+
* [How to evaluate deployed models](docs/en/02-how-to-run/how_to_evaluate_a_model.md)
83+
* [How to measure performance of deployed models](docs/en/02-how-to-run/how_to_measure_performance_of_models.md)
84+
* Developer Guide
85+
* [How to support new models](docs/en/06-developer-guide/support_new_model.md)
86+
* [How to support new backends](docs/en/06-developer-guide/support_new_backend.md)
87+
* [FAQ](docs/en/faq.md)
88+
* [Contributing](.github/CONTRIBUTING.md)
8289

83-
Please refer to [FAQ](https://mmdeploy.readthedocs.io/en/latest/faq.html) for frequently asked questions.
90+
## Benchmark and Model zoo
8491

85-
## Benchmark and model zoo
86-
87-
Results and supported model list are available in the [benchmark](https://mmdeploy.readthedocs.io/en/latest/benchmark.html) and [model list](https://mmdeploy.readthedocs.io/en/latest/supported_models.html).
92+
You can find the supported models from [here](docs/en/03-benchmark/supported_models.md) and their performance in the [benchmark](docs/en/03-benchmark/benchmark.md).
8893

8994
## Contributing
9095

91-
We appreciate all contributions to improve MMDeploy. Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the contributing guideline.
96+
We appreciate all contributions to MMDeploy. Please refer to [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the contributing guideline.
9297

9398
## Acknowledgement
9499

95100
We would like to sincerely thank the following teams for their contributions to [MMDeploy](https://github.com/open-mmlab/mmdeploy):
96101
- [OpenPPL](https://github.com/openppl-public)
97102
- [OpenVINO](https://github.com/openvinotoolkit/openvino)
103+
- [ncnn](https://github.com/Tencent/ncnn)
98104

99105
## Citation
100106

101-
If you find this project useful in your research, please consider cite:
107+
If you find this project useful in your research, please consider citing:
102108

103109
```BibTeX
104110
@misc{=mmdeploy,
@@ -109,6 +115,10 @@ If you find this project useful in your research, please consider cite:
109115
}
110116
```
111117

118+
## License
119+
120+
This project is released under the [Apache 2.0 license](LICENSE).
121+
112122
## Projects in OpenMMLab
113123

114124
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab foundational library for computer vision.

README_zh-CN.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
[![badge](https://github.com/open-mmlab/mmdeploy/workflows/build/badge.svg)](https://github.com/open-mmlab/mmdeploy/actions)
2424
[![codecov](https://codecov.io/gh/open-mmlab/mmdeploy/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmdeploy)
2525
[![license](https://img.shields.io/github/license/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/blob/master/LICENSE)
26-
[![issue resolution](https://isitmaintained.com/badge/resolution/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/issues)
27-
[![open issues](https://isitmaintained.com/badge/open/open-mmlab/mmdeploy.svg)](https://github.com/open-mmlab/mmdeploy/issues)
28-
29-
## 介绍
26+
[![issue resolution](https://img.shields.io/github/issues-closed-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
27+
[![open issues](https://img.shields.io/github/issues-raw/open-mmlab/mmdeploy)](https://github.com/open-mmlab/mmdeploy/issues)
3028

3129
[English](README.md) | 简体中文
3230

31+
## 介绍
32+
3333
MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为各算法库提供统一的部署体验**。基于 MMDeploy,开发者可以轻松从训练 repo 生成指定硬件所需 SDK,省去大量适配时间。
3434

3535
## 架构简析
@@ -41,37 +41,33 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
4141
## 特性简介
4242

4343
### 支持超多 OpenMMLab 算法库
44-
- mmcls
45-
- mmdet
46-
- mmdet3d
47-
- mmedit
48-
- mmocr
49-
- mmpose
50-
- mmseg
51-
- [支持列表](docs/zh_cn/03-benchmark/supported_models.md)
44+
- [mmcls](docs/en/04-supported-codebases/mmcls.md)
45+
- [mmdet](docs/en/04-supported-codebases/mmdet.md)
46+
- [mmseg](docs/en/04-supported-codebases/mmseg.md)
47+
- [mmedit](docs/en/04-supported-codebases/mmedit.md)
48+
- [mmocr](docs/en/04-supported-codebases/mmocr.md)
49+
- [mmpose](docs/en/04-supported-codebases/mmpose.md)
50+
- [mmdet3d](docs/en/04-supported-codebases/mmdet3d.md)
51+
- [mmrotate](docs/en/04-supported-codebases/mmrotate.md)
5252

5353
### 支持多种推理后端
54-
|ONNX Runtime|TensorRT|ppl.nn|ncnn|OpenVINO|more|
55-
|------------|--------|------|----|--------|----|
56-
|✔️ |✔️ |✔️ |✔️ |✔️ |[benchmark](docs/zh_cn/03-benchmark/benchmark.md)|
54+
| ONNX Runtime | TensorRT | ppl.nn | ncnn | OpenVINO | more |
55+
| ------------ | -------- | ------ | ---- | -------- | ------------------------------------------------- |
56+
| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | [benchmark](docs/zh_cn/03-benchmark/benchmark.md) |
5757

5858
### SDK 可高度定制化
5959
- Transform 数据预处理
6060
- Net 推理
6161
- Module 后处理
6262

63-
## 开源许可证
64-
65-
该项目采用 [Apache 2.0 开源许可证](LICENSE)
66-
6763
## [快速上手](docs/zh_cn/get_started.md)
6864

6965
* [编译](docs/zh_cn/01-how-to-build/build_from_source.md)
70-
* [Build for Android](docs/zh_cn/01-how-to-build/android.md)
66+
* [Build from Docker](docs/zh_cn/01-how-to-build/build_from_docker.md)
7167
* [Build for Linux](docs/zh_cn/01-how-to-build/linux-x86_64.md)
7268
* [Build for Win10](docs/zh_cn/01-how-to-build/windows.md)
73-
* [Build for Jetson](docs/en/tutorials/how_to_install_mmdeploy_on_jetsons.md)
74-
* [Build from Docker](docs/zh_cn/01-how-to-build/build_from_docker.md)
69+
* [Build for Android](docs/zh_cn/01-how-to-build/android.md)
70+
* [Build for Jetson](docs/en/01-how-to-build/jetsons.md)
7571
* 使用
7672
* [把模型转换到推理 Backend](docs/zh_cn/02-how-to-run/convert_model.md)
7773
* [配置转换参数](docs/zh_cn/02-how-to-run/write_config.md)
@@ -114,6 +110,10 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
114110
}
115111
```
116112

113+
## 开源许可证
114+
115+
该项目采用 [Apache 2.0 开源许可证](LICENSE)
116+
117117
## OpenMMLab 的其他项目
118118

119119
- [MMCV](https://github.com/open-mmlab/mmcv): OpenMMLab 计算机视觉基础库
@@ -138,11 +138,12 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
138138

139139
## 欢迎加入 OpenMMLab 社区
140140

141-
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 OpenMMLab 团队的 [官方交流 QQ 群](https://jq.qq.com/?_wv=1027&k=aCvMxdr3)
141+
扫描下方的二维码可关注 OpenMMLab 团队的 [知乎官方账号](https://www.zhihu.com/people/openmmlab),加入 OpenMMLab 团队的 [官方交流 QQ 群](https://jq.qq.com/?_wv=1027&k=MSMAfWOe),或添加微信小助手”OpenMMLabwx“加入官方交流微信群。
142142

143143
<div align="center">
144144
<img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/zhihu_qrcode.jpg" height="400" />
145-
<img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/qq_group_qrcode.jpg" height="400" />
145+
<img src="resources/qq_group_qrcode.jpg" height="400" />
146+
<img src="https://raw.githubusercontent.com/open-mmlab/mmcv/master/docs/en/_static/wechat_qrcode.jpg" height="400" />
146147
</div>
147148

148149
我们会在 OpenMMLab 社区为大家
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Model converter is executed on linux platform, and SDK is executed on android pl
1717

1818
Here are two steps for android build.
1919

20-
1. Build model converter on linux, please refer to [How to build linux](./linux.md)
20+
1. Build model converter on linux, please refer to [How to build linux](./linux-x86_64.md)
2121

2222
2. Build SDK using android toolchain on linux.
2323

docs/en/tutorials/how_to_use_docker.md renamed to docs/en/01-how-to-build/build_from_docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Docker usage
1+
## Use Docker Image
22

33
We provide two dockerfiles for CPU and GPU respectively. For CPU users, we install MMDeploy with ONNXRuntime, ncnn and OpenVINO backends. For GPU users, we install MMDeploy with TensorRT backend. Besides, users can install mmdeploy with different versions when building the docker image.
44

docs/en/build.md renamed to docs/en/01-how-to-build/build_from_source.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Build MMDeploy
1+
# Build From Source
22

3-
## Download MMDeploy
43

4+
## Download
55

6-
```bash
7-
git clone -b master [email protected]:open-mmlab/mmdeploy.git MMDeploy
8-
cd MMDeploy
9-
git submodule update --init --recursive
6+
7+
```shell
8+
git clone -b master [email protected]:open-mmlab/mmdeploy.git --recursive
109
```
1110

1211
Note:
1312

1413
- If fetching submodule fails, you could get submodule manually by following instructions:
1514

16-
```bash
15+
```shell
16+
cd mmdeploy
1717
git clone [email protected]:NVIDIA/cub.git third_party/cub
1818
cd third_party/cub
1919
git checkout c3cceac115
@@ -26,15 +26,13 @@ Note:
2626
```
2727
- If it fails when `git clone` via `SSH`, you can try the `HTTPS` protocol like this:
2828

29-
```bash
30-
git clone -b master https://github.com/open-mmlab/mmdeploy.git MMDeploy
31-
cd MMDeploy
32-
git submodule update --init --recursive
29+
```shell
30+
git clone -b master https://github.com/open-mmlab/mmdeploy.git --recursive
3331
```
3432

35-
## Build MMDeploy
33+
## Build
3634
Please visit the following links to find out how to build MMDeploy according to the target platform.
37-
- [Linux-x86_64](build/linux.md)
38-
- [Windows](build/windows.md)
39-
- [Android-aarch64](build/android.md)
40-
- [NVIDIA Jetson](tutorials/how_to_install_mmdeploy_on_jetsons.md)
35+
- [Linux-x86_64](linux-x86_64.md)
36+
- [Windows](windows.md)
37+
- [Android-aarch64](android.md)
38+
- [NVIDIA Jetson](jetsons.md)

docs/en/tutorials/how_to_install_mmdeploy_on_jetsons.md renamed to docs/en/01-how-to-build/jetsons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## How to install mmdeploy on Jetsons
1+
## Build for Jetson
22

33
This tutorial introduces how to install mmdeploy on Nvidia Jetson systems. It mainly introduces the installation of mmdeploy on three Jetson series boards:
44
- Jetson Nano
@@ -102,7 +102,7 @@ cmake --version
102102
```
103103

104104
### Install mmdeploy
105-
Just follow the instruction [here](../build.md). If it throws `failed building wheel for numpy...ERROR: Failed to build one or more wheels` when installing `h5py`, try install `h5py` manually.
105+
Just follow the instruction [here](../01-how-to-build/build_from_source.md). If it throws `failed building wheel for numpy...ERROR: Failed to build one or more wheels` when installing `h5py`, try install `h5py` manually.
106106
```
107107
sudo apt-get install pkg-config libhdf5-100 libhdf5-dev
108108
pip install versioned-hdf5 --no-cache-dir

0 commit comments

Comments
 (0)