Closed aixiaodewugege closed 1 year ago
For yolox, we can't reproduce your problem. Which openvino version do you use?
For RTMpose, the problem is because the generated deploy.json is wrong. @tpoisonooo Could you please have a look into this?
# generated
onnx_config = dict(
type='onnx',
export_params=True,
keep_initializers_as_inputs=False,
opset_version=11,
save_file='end2end.onnx',
input_names=['input'],
output_names=['output'],
input_shape=[256, 256],
optimize=True)
codebase_config = dict(type='mmpose', task='PoseDetection')
backend_config = dict(
type='openvino',
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 256, 192]))])
# should be
onnx_config = dict(
type='onnx',
export_params=True,
keep_initializers_as_inputs=False,
opset_version=11,
save_file='end2end.onnx',
input_names=['input'],
output_names=['simcc_x', 'simcc_y'],
input_shape=[192, 256],
optimize=True)
codebase_config = dict(type='mmpose', task='PoseDetection')
backend_config = dict(
type='openvino',
model_inputs=[dict(opt_shapes=dict(input=[1, 3, 256, 192]))])
Checklist
Describe the bug
YOLOX and RTMpose model fail to be inferenced in python sdk on openvino backend.
Converted models are downloaded from mmdeploy website.
Reproduction
detector = Detector(model_path='mmdeploy_models/mmdetection/yolox_openvino_mmdet', device_name='cpu')
Environment
Error traceback