mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
[Enhancement] check in tensorrt-fp16 deployment config for simcc (#1741)
* check in tensorrt-fp16 deployment config for simcc * update
This commit is contained in:
parent
19815ae9ae
commit
2efb42d8d8
@ -7,7 +7,10 @@ onnx_config = dict(
|
||||
'input': {
|
||||
0: 'batch',
|
||||
},
|
||||
'output': {
|
||||
'simcc_x': {
|
||||
0: 'batch'
|
||||
},
|
||||
'simcc_y': {
|
||||
0: 'batch'
|
||||
}
|
||||
})
|
||||
|
@ -0,0 +1,27 @@
|
||||
_base_ = ['./pose-detection_static.py', '../_base_/backends/tensorrt-fp16.py']
|
||||
|
||||
onnx_config = dict(
|
||||
input_shape=[192, 256],
|
||||
output_names=['simcc_x', 'simcc_y'],
|
||||
dynamic_axes={
|
||||
'input': {
|
||||
0: 'batch',
|
||||
},
|
||||
'simcc_x': {
|
||||
0: 'batch'
|
||||
},
|
||||
'simcc_y': {
|
||||
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, 256, 192],
|
||||
opt_shape=[2, 3, 256, 192],
|
||||
max_shape=[4, 3, 256, 192])))
|
||||
])
|
@ -7,7 +7,10 @@ onnx_config = dict(
|
||||
'input': {
|
||||
0: 'batch',
|
||||
},
|
||||
'output': {
|
||||
'simcc_x': {
|
||||
0: 'batch'
|
||||
},
|
||||
'simcc_y': {
|
||||
0: 'batch'
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user