Skip to content

Commit 2595206

Browse files
committed
update docs
1 parent 8a095ac commit 2595206

File tree

3 files changed

+24
-67
lines changed

3 files changed

+24
-67
lines changed

docs/en/04-supported-codebases/mmdet3d.md

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,28 @@ ______________________________________________________________________
1212

1313
## Install mmdet3d
1414

15-
These branches are required for mmdet3d deployment
16-
17-
| codebase | commit |
18-
| :------: | :-------: |
19-
| mmdet3d | v1.1.0rc1 |
20-
| mmcv | v2.0.0rc1 |
21-
| mmdet | v3.0.0rc1 |
22-
| mmseg | v1.0.0rc0 |
23-
24-
First checkout and install mmcv/mmdet/mmseg/mmdet3d
25-
26-
```bash
27-
python3 -m pip install openmim --user
28-
python3 -m mim install mmcv==2.0.0rc1 mmdet==3.0.0rc1 mmseg==1.0.0rc0 --user
29-
30-
git clone https://github.com/open-mmlab/mmdetection3d --branch v1.1.0rc1
31-
cd mmdetection3d
32-
python3 -m pip install .
33-
cd -
34-
```
35-
36-
After installation, `tools/check_env.py` should display mmdet3d version normally
15+
We could install mmdet3d through [mim](https://github.com/open-mmlab/mim).
16+
For other ways of installation, please refer to [here](https://mmdetection3d.readthedocs.io/en/latest/get_started.html#installation)
3717

3818
```bash
39-
python3 tools/check_env.py
40-
..
41-
11/11 13:56:19 - mmengine - INFO - **********Codebase information**********
42-
11/11 13:56:19 - mmengine - INFO - mmdet: 3.0.0rc1
43-
11/11 13:56:19 - mmengine - INFO - mmseg: 1.0.0rc0
44-
..
45-
11/11 13:56:19 - mmengine - INFO - mmdet3d: 1.1.0rc1
19+
python3 -m pip install -U openmim
20+
python3 -m mim install "mmdet3d>=1.1.0"
4621
```
4722

4823
## Convert model
4924

5025
For example, use `tools/deploy.py` to convert centerpoint to onnxruntime format
5126

5227
```bash
53-
export MODEL_CONFIG=/path/to/mmdetection3d/configs/centerpoint/centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d.py
28+
# cd to mmdeploy root directory
29+
# download config and model
30+
mim download mmdet3d --config centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d --dest .
31+
32+
export MODEL_CONFIG=centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d.py
5433

55-
export MODEL_PATH=https://download.openmmlab.com/mmdetection3d/v1.0.0_models/centerpoint/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus_20210816_064624-0f3299c0.pth
34+
export MODEL_PATH=centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus_20220811_031844-191a3822.pth
5635

57-
export TEST_DATA=/path/to/mmdetection3d/tests/data/nuscenes/sweeps/LIDAR_TOP/n008-2018-09-18-12-07-26-0400__LIDAR_TOP__1537287083900561.pcd.bin
36+
export TEST_DATA=tests/data/n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151612397179.pcd.bin
5837

5938
python3 tools/deploy.py configs/mmdet3d/voxel-detection/voxel-detection_onnxruntime_dynamic.py $MODEL_CONFIG $MODEL_PATH $TEST_DATA --work-dir centerpoint
6039
```
@@ -82,4 +61,4 @@ The caller needs to refer to the corresponding [python implementation](../../../
8261
| [pointpillars](https://github.com/open-mmlab/mmdetection3d/blob/main/configs/pointpillars/pointpillars_hv_secfpn_8xb6-160e_kitti-3d-3class.py) | voxel detection | KITTI | ✔️ | ✔️ | ✔️ |
8362
| [smoke](https://github.com/open-mmlab/mmdetection3d/blob/main/configs/smoke/smoke_dla34_dlaneck_gn-all_4xb8-6x_kitti-mono3d.py) | monocular detection | KITTI | ✔️ | x | ✔️ |
8463

85-
- Make sure trt >= 8.4 for some bug fixed, such as ScatterND, dynamic shape crash and so on.
64+
- Make sure trt >= 8.6 for some bug fixed, such as ScatterND, dynamic shape crash and so on.

docs/zh_cn/04-supported-codebases/mmdet3d.md

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,28 @@ ______________________________________________________________________
1212

1313
## 安装 mmdet3d
1414

15-
因为依赖的 codebase 不在 master 分支,所以要切到相应分支:
16-
17-
| codebase | commit |
18-
| :------: | :-------: |
19-
| mmdet3d | v1.1.0rc1 |
20-
| mmcv | v2.0.0rc1 |
21-
| mmdet | v3.0.0rc1 |
22-
| mmseg | v1.0.0rc0 |
23-
24-
先安装前置依赖 mmcv/mmdet/mmseg,再安装 mmdet3d
25-
26-
```bash
27-
python3 -m pip install openmim --user
28-
python3 -m mim install mmcv==2.0.0rc1 mmdet==3.0.0rc1 mmseg==1.0.0rc0 --user
29-
30-
git clone https://github.com/open-mmlab/mmdetection3d --branch v1.1.0rc1
31-
cd mmdetection3d
32-
python3 -m pip install .
33-
cd -
34-
```
35-
36-
成功后 `tools/check_env.py` 应能正常显示 mmdet3d 版本号。
15+
我们可以通过 [mim](https://github.com/open-mmlab/mim) 来安装 mmdet3d.
16+
更多安装方式可参考该[文档](https://mmdetection3d.readthedocs.io/en/latest/get_started.html#installation)
3717

3818
```bash
39-
python3 tools/check_env.py
40-
..
41-
11/11 13:56:19 - mmengine - INFO - **********Codebase information**********
42-
11/11 13:56:19 - mmengine - INFO - mmdet: 3.0.0rc1
43-
11/11 13:56:19 - mmengine - INFO - mmseg: 1.0.0rc0
44-
..
45-
11/11 13:56:19 - mmengine - INFO - mmdet3d: 1.1.0rc1
19+
python3 -m pip install -U openmim
20+
python3 -m mim install "mmdet3d>=1.1.0"
4621
```
4722

4823
## 模型转换
4924

5025
使用 `tools/deploy.py` 把 mmdet3d 转到相应后端,以 centerpoint onnxruntime 为例:
5126

5227
```bash
53-
export MODEL_CONFIG=/path/to/mmdetection3d/configs/centerpoint/centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d.py
28+
# 切换到 mmdeploy 根目录
29+
# 通过mim下载centerpoint模型
30+
mim download mmdet3d --config centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d --dest .
31+
32+
export MODEL_CONFIG=centerpoint_pillar02_second_secfpn_head-circlenms_8xb4-cyclic-20e_nus-3d.py
5433

55-
export MODEL_PATH=https://download.openmmlab.com/mmdetection3d/v1.0.0_models/centerpoint/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus_20210816_064624-0f3299c0.pth
34+
export MODEL_PATH=centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus_20220811_031844-191a3822.pth
5635

57-
export TEST_DATA=/path/to/mmdetection3d/tests/data/nuscenes/sweeps/LIDAR_TOP/n008-2018-09-18-12-07-26-0400__LIDAR_TOP__1537287083900561.pcd.bin
36+
export TEST_DATA=tests/data/n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151612397179.pcd.bin
5837

5938
python3 tools/deploy.py configs/mmdet3d/voxel-detection/voxel-detection_onnxruntime_dynamic.py $MODEL_CONFIG $MODEL_PATH $TEST_DATA --work-dir centerpoint
6039
```
@@ -80,4 +59,4 @@ ls -lah centerpoint
8059
| [pointpillars](https://github.com/open-mmlab/mmdetection3d/blob/main/configs/pointpillars/pointpillars_hv_secfpn_8xb6-160e_kitti-3d-3class.py) | voxel detection | KITTI | ✔️ | ✔️ | ✔️ |
8160
| [smoke](https://github.com/open-mmlab/mmdetection3d/blob/main/configs/smoke/smoke_dla34_dlaneck_gn-all_4xb8-6x_kitti-mono3d.py) | monocular detection | KITTI | ✔️ | x | ✔️ |
8261

83-
- 考虑到 ScatterND、动态 shape 等已知问题,请确保 trt >= 8.4
62+
- 考虑到 ScatterND、动态 shape 等已知问题,请确保 trt >= 8.6

tests/regression/mmdet.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ models:
351351
- deploy_config: configs/mmdet/detection/detection_tensorrt_static-640x640.py
352352
convert_image: *convert_image
353353
backend_test: *default_backend_test
354-
sdk_config: *sdk_dynamic
355354
- deploy_config: configs/mmdet/detection/single-stage_ncnn_static-640x640.py
356355
convert_image: *convert_image
357356

0 commit comments

Comments
 (0)