forked from open-mmlab/mmdeploy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]support pointpillar nus version (open-mmlab#391)
* support pointpillar nus version * support pointpillar nus version * add regression test config for mmdet3d * fix exit with no error code * fix cfg * fix worksize * fix worksize * fix cfg * support nus pp * fix yaml * fix yaml * fix yaml * add ut * fix ut Co-authored-by: RunningLeon <[email protected]>
- Loading branch information
1 parent
80d24fc
commit f957284
Showing
14 changed files
with
319 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
configs/mmdet3d/voxel-detection/voxel-detection_openvino_dynamic-nus-64x4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
_base_ = ['./voxel-detection_dynamic.py', '../../_base_/backends/openvino.py'] | ||
|
||
onnx_config = dict(input_shape=None) | ||
|
||
backend_config = dict(model_inputs=[ | ||
dict( | ||
opt_shapes=dict( | ||
voxels=[20000, 64, 4], num_points=[20000], coors=[20000, 4])) | ||
]) |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...n/voxel-detection_tensorrt_dynamic-nus.py → ...el-detection_tensorrt_dynamic-nus-20x5.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
configs/mmdet3d/voxel-detection/voxel-detection_tensorrt_dynamic-nus-64x4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
_base_ = ['./voxel-detection_dynamic.py', '../../_base_/backends/tensorrt.py'] | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 32), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
voxels=dict( | ||
min_shape=[5000, 64, 4], | ||
opt_shape=[20000, 64, 4], | ||
max_shape=[30000, 64, 4]), | ||
num_points=dict( | ||
min_shape=[5000], opt_shape=[20000], max_shape=[30000]), | ||
coors=dict( | ||
min_shape=[5000, 4], | ||
opt_shape=[20000, 4], | ||
max_shape=[30000, 4]), | ||
)) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+679 KB
tests/data/n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151612397179.pcd.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
globals: | ||
codebase_dir: ../mmdetection3d | ||
checkpoint_force_download: False | ||
images: | ||
kitti_input: &kitti_input ../mmdetection3d/demo/data/kitti/kitti_000008.bin | ||
nus_input: &nus_input ./tests/data/n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151612397179.pcd.bin | ||
|
||
metric_info: &metric_info | ||
AP: # named after metafile.Results.Metrics | ||
eval_name: bbox # test.py --metrics args | ||
metric_key: bbox_mAP # eval OrderedDict key name | ||
tolerance: 1 # metric ±n% | ||
task_name: 3D Object Detection # metafile.Results.Task | ||
dataset: KITTI # metafile.Results.Dataset | ||
mAP: | ||
eval_name: bbox | ||
metric_key: bbox_mAP | ||
tolerance: 1 # metric ±n% | ||
task_name: 3D Object Detection | ||
dataset: nuScenes | ||
NDS: | ||
eval_name: bbox | ||
metric_key: bbox_mAP | ||
tolerance: 1 # metric ±n% | ||
task_name: 3D Object Detection | ||
dataset: nuScenes | ||
backend_test: &default_backend_test False | ||
|
||
convert_image: &convert_image | ||
input_img: *kitti_input | ||
test_img: *kitti_input | ||
|
||
|
||
convert_image_nus: &convert_image_nus | ||
input_img: *nus_input | ||
test_img: *nus_input | ||
|
||
onnxruntime: | ||
pipeline_ort_dynamic_kitti_fp32: &pipeline_ort_dynamic_kitti_fp32 | ||
convert_image: *convert_image | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_onnxruntime_dynamic.py | ||
|
||
pipeline_ort_dynamic_nus_fp32: &pipeline_ort_dynamic_nus_fp32 | ||
convert_image: *convert_image_nus | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_onnxruntime_dynamic.py | ||
|
||
tensorrt: | ||
pipeline_trt_dynamic_nus_fp32_64x4: &pipeline_trt_dynamic_nus_fp32_64x4 | ||
convert_image: *convert_image_nus | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_tensorrt_dynamic-nus-64x4.py | ||
|
||
pipeline_trt_dynamic_nus_fp32_20x5: &pipeline_trt_dynamic_nus_fp32_20x5 | ||
convert_image: *convert_image_nus | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_tensorrt_dynamic-nus-20x5.py | ||
|
||
pipeline_trt_dynamic_kitti_fp32: &pipeline_trt_dynamic_kitti_fp32 | ||
convert_image: *convert_image | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_tensorrt_dynamic-kitti-32x4.py | ||
|
||
openvino: | ||
pipeline_openvino_dynamic_kitti_fp32: &pipeline_openvino_dynamic_kitti_fp32 | ||
convert_image: *convert_image | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_openvino_dynamic-kitti-32x4.py | ||
|
||
pipeline_openvino_dynamic_nus_fp32_64x4: &pipeline_openvino_dynamic_nus_fp32_64x4 | ||
convert_image: *convert_image_nus | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_openvino_dynamic-nus-64x4.py | ||
|
||
pipeline_openvino_dynamic_nus_fp32_20x5: &pipeline_openvino_dynamic_nus_fp32_20x5 | ||
convert_image: *convert_image_nus | ||
backend_test: *default_backend_test | ||
deploy_config: configs/mmdet3d/voxel-detection/voxel-detection_openvino_dynamic-nus-20x5.py | ||
|
||
models: | ||
- name: PointPillars | ||
metafile: configs/pointpillars/metafile.yml | ||
model_configs: | ||
- configs/pointpillars/hv_pointpillars_secfpn_6x8_160e_kitti-3d-3class.py | ||
- configs/pointpillars/hv_pointpillars_secfpn_6x8_160e_kitti-3d-car.py | ||
pipelines: | ||
- *pipeline_ort_dynamic_kitti_fp32 | ||
- *pipeline_openvino_dynamic_kitti_fp32 | ||
- *pipeline_trt_dynamic_kitti_fp32 | ||
- name: PointPillars | ||
metafile: configs/pointpillars/metafile.yml | ||
model_configs: | ||
- configs/pointpillars/hv_pointpillars_secfpn_sbn-all_4x8_2x_nus-3d.py | ||
pipelines: | ||
- *pipeline_ort_dynamic_nus_fp32 | ||
- *pipeline_openvino_dynamic_nus_fp32_64x4 | ||
- *pipeline_trt_dynamic_nus_fp32_64x4 | ||
- name: CenterPoint | ||
metafile: configs/centerpoint/metafile.yml | ||
model_configs: | ||
- configs/centerpoint/centerpoint_02pillar_second_secfpn_circlenms_4x8_cyclic_20e_nus.py | ||
pipelines: | ||
- *pipeline_ort_dynamic_nus_fp32 | ||
- *pipeline_openvino_dynamic_nus_fp32_20x5 | ||
- *pipeline_trt_dynamic_nus_fp32_20x5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters