From 486d45e739d0b2c606869b07676290b5671e133e Mon Sep 17 00:00:00 2001 From: tripleMu <92794867+q3394101@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:09:58 +0800 Subject: [PATCH] [FIX] update docs and configs about openvino ssd deployment (#175) * add openvino static config for docs' ssd deploy * fix docs of openvino.md * fix ssd openvino deployment * rename openvino config * remove some files --- configs/mmdet/_base_/base_openvino_dynamic-300x300.py | 6 ++++++ .../mmdet/detection/detection_openvino_dynamic-300x300.py | 1 + docs/en/backends/openvino.md | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 configs/mmdet/_base_/base_openvino_dynamic-300x300.py create mode 100644 configs/mmdet/detection/detection_openvino_dynamic-300x300.py diff --git a/configs/mmdet/_base_/base_openvino_dynamic-300x300.py b/configs/mmdet/_base_/base_openvino_dynamic-300x300.py new file mode 100644 index 000000000..ae1116df9 --- /dev/null +++ b/configs/mmdet/_base_/base_openvino_dynamic-300x300.py @@ -0,0 +1,6 @@ +_base_ = ['./base_dynamic.py', '../../_base_/backends/openvino.py'] + +onnx_config = dict(input_shape=None) + +backend_config = dict( + model_inputs=[dict(opt_shapes=dict(input=[1, 3, 300, 300]))]) diff --git a/configs/mmdet/detection/detection_openvino_dynamic-300x300.py b/configs/mmdet/detection/detection_openvino_dynamic-300x300.py new file mode 100644 index 000000000..1df7d1211 --- /dev/null +++ b/configs/mmdet/detection/detection_openvino_dynamic-300x300.py @@ -0,0 +1 @@ +_base_ = ['../_base_/base_openvino_dynamic.py'] diff --git a/docs/en/backends/openvino.md b/docs/en/backends/openvino.md index d043c578a..12a6686d3 100644 --- a/docs/en/backends/openvino.md +++ b/docs/en/backends/openvino.md @@ -27,7 +27,7 @@ sudo apt-get install libpython3.7 Example: ```bash python tools/deploy.py \ - configs/mmdet/detection/detection_openvino_dynamic.py \ + configs/mmdet/detection/detection_openvino_static-300x300.py \ /mmdetection_dir/mmdetection/configs/ssd/ssd300_coco.py \ /tmp/snapshots/ssd300_coco_20210803_015428-d231a06e.pth \ tests/data/tiger.jpeg \