-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support deploy of YoloX-Pose (#2184)
* dev_mmpose * tide * fix lint * del redundant task and model * fix * test ut * test ut * upload configs * fix * remove debug * fix lint * use mmcv.ops.nms * fix lint * remove loop * debug * test modified ut * fix lint * fix return type * fix * fix rescale * fix * fix pack_result * update batch inference * fix nms and pytorch show_box * fix lint * modify ut * add docstring * modify nms * fix * add openvino config * update docs * fix test_mmpose --------- Co-authored-by: RunningLeon <[email protected]>
- Loading branch information
1 parent
a664f06
commit e19f6fa
Showing
15 changed files
with
455 additions
and
21 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
configs/mmpose/pose-detection_yolox-pose_onnxruntime_dynamic.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,25 @@ | ||
_base_ = ['./pose-detection_static.py', '../_base_/backends/onnxruntime.py'] | ||
|
||
onnx_config = dict( | ||
output_names=['dets', 'keypoints'], | ||
dynamic_axes={ | ||
'input': { | ||
0: 'batch', | ||
}, | ||
'dets': { | ||
0: 'batch', | ||
}, | ||
'keypoints': { | ||
0: 'batch' | ||
} | ||
}) | ||
|
||
codebase_config = dict( | ||
post_processing=dict( | ||
score_threshold=0.05, | ||
iou_threshold=0.5, | ||
max_output_boxes_per_class=200, | ||
pre_top_k=5000, | ||
keep_top_k=100, | ||
background_label_id=-1, | ||
)) |
27 changes: 27 additions & 0 deletions
27
configs/mmpose/pose-detection_yolox-pose_openvino_dynamic-640x640.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,27 @@ | ||
_base_ = ['./pose-detection_static.py', '../_base_/backends/openvino.py'] | ||
|
||
onnx_config = dict( | ||
output_names=['dets', 'keypoints'], | ||
dynamic_axes={ | ||
'input': { | ||
0: 'batch', | ||
}, | ||
'dets': { | ||
0: 'batch', | ||
}, | ||
'keypoints': { | ||
0: 'batch' | ||
} | ||
}) | ||
backend_config = dict( | ||
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 640, 640]))]) | ||
|
||
codebase_config = dict( | ||
post_processing=dict( | ||
score_threshold=0.05, | ||
iou_threshold=0.5, | ||
max_output_boxes_per_class=200, | ||
pre_top_k=5000, | ||
keep_top_k=100, | ||
background_label_id=-1, | ||
)) |
35 changes: 35 additions & 0 deletions
35
configs/mmpose/pose-detection_yolox-pose_tensorrt_dynamic-640x640.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,35 @@ | ||
_base_ = ['./pose-detection_static.py', '../_base_/backends/tensorrt.py'] | ||
|
||
onnx_config = dict( | ||
output_names=['dets', 'keypoints'], | ||
dynamic_axes={ | ||
'input': { | ||
0: 'batch', | ||
}, | ||
'dets': { | ||
0: 'batch', | ||
}, | ||
'keypoints': { | ||
0: 'batch' | ||
} | ||
}) | ||
backend_config = dict( | ||
common_config=dict(max_workspace_size=1 << 30), | ||
model_inputs=[ | ||
dict( | ||
input_shapes=dict( | ||
input=dict( | ||
min_shape=[1, 3, 640, 640], | ||
opt_shape=[1, 3, 640, 640], | ||
max_shape=[1, 3, 640, 640]))) | ||
]) | ||
|
||
codebase_config = dict( | ||
post_processing=dict( | ||
score_threshold=0.05, | ||
iou_threshold=0.5, | ||
max_output_boxes_per_class=200, | ||
pre_top_k=5000, | ||
keep_top_k=100, | ||
background_label_id=-1, | ||
)) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) OpenMMLab. All rights reserved. | ||
from . import mspn_head | ||
from . import mspn_head, yolox_pose_head # noqa: F401,F403 | ||
|
||
__all__ = ['mspn_head'] | ||
__all__ = ['mspn_head', 'yolox_pose_head'] |
Oops, something went wrong.