Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
mmdeploy
Commits
68661967
Commit
68661967
authored
Jun 25, 2025
by
limm
Browse files
add config module
parent
4353fa59
Pipeline
#2808
canceled with stages
Changes
341
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
255 additions
and
0 deletions
+255
-0
configs/mmpretrain/classification_tensorrt-int8_dynamic-224x224-224x224.py
...n/classification_tensorrt-int8_dynamic-224x224-224x224.py
+13
-0
configs/mmpretrain/classification_tensorrt-int8_static-224x224.py
...mmpretrain/classification_tensorrt-int8_static-224x224.py
+13
-0
configs/mmpretrain/classification_tensorrt_dynamic-224x224-224x224.py
...etrain/classification_tensorrt_dynamic-224x224-224x224.py
+13
-0
configs/mmpretrain/classification_tensorrt_static-224x224.py
configs/mmpretrain/classification_tensorrt_static-224x224.py
+13
-0
configs/mmpretrain/classification_torchscript.py
configs/mmpretrain/classification_torchscript.py
+6
-0
configs/mmpretrain/classification_tvm-ansor_static-224x224.py
...igs/mmpretrain/classification_tvm-ansor_static-224x224.py
+12
-0
configs/mmpretrain/classification_tvm-autotvm-int8_static-224x224.py
...retrain/classification_tvm-autotvm-int8_static-224x224.py
+16
-0
configs/mmpretrain/classification_tvm-autotvm_static-224x224.py
...s/mmpretrain/classification_tvm-autotvm_static-224x224.py
+14
-0
configs/mmpretrain/classification_vacc-fp16_static.py
configs/mmpretrain/classification_vacc-fp16_static.py
+26
-0
configs/mmpretrain/classification_vacc-int8_static.py
configs/mmpretrain/classification_vacc-int8_static.py
+5
-0
configs/mmrotate/rotated-detection_onnxruntime-fp16_dynamic.py
...gs/mmrotate/rotated-detection_onnxruntime-fp16_dynamic.py
+25
-0
configs/mmrotate/rotated-detection_onnxruntime_dynamic.py
configs/mmrotate/rotated-detection_onnxruntime_dynamic.py
+17
-0
configs/mmrotate/rotated-detection_onnxruntime_static.py
configs/mmrotate/rotated-detection_onnxruntime_static.py
+3
-0
configs/mmrotate/rotated-detection_sdk_dynamic.py
configs/mmrotate/rotated-detection_sdk_dynamic.py
+8
-0
configs/mmrotate/rotated-detection_static.py
configs/mmrotate/rotated-detection_static.py
+10
-0
configs/mmrotate/rotated-detection_tensorrt-fp16_dynamic-320x320-1024x1024.py
...ated-detection_tensorrt-fp16_dynamic-320x320-1024x1024.py
+3
-0
configs/mmrotate/rotated-detection_tensorrt-fp16_static-1024x1024.py
...otate/rotated-detection_tensorrt-fp16_static-1024x1024.py
+16
-0
configs/mmrotate/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py
...e/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py
+32
-0
configs/mmseg/segmentation_ascend_static-1024x2048.py
configs/mmseg/segmentation_ascend_static-1024x2048.py
+5
-0
configs/mmseg/segmentation_ascend_static-512x1024.py
configs/mmseg/segmentation_ascend_static-512x1024.py
+5
-0
No files found.
configs/mmpretrain/classification_tensorrt-int8_dynamic-224x224-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_dynamic.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
224
,
224
],
opt_shape
=
[
4
,
3
,
224
,
224
],
max_shape
=
[
8
,
3
,
224
,
224
])))
])
configs/mmpretrain/classification_tensorrt-int8_static-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
224
,
224
],
opt_shape
=
[
1
,
3
,
224
,
224
],
max_shape
=
[
1
,
3
,
224
,
224
])))
])
configs/mmpretrain/classification_tensorrt_dynamic-224x224-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_dynamic.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
224
,
224
],
opt_shape
=
[
4
,
3
,
224
,
224
],
max_shape
=
[
8
,
3
,
224
,
224
])))
])
configs/mmpretrain/classification_tensorrt_static-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
224
,
224
],
opt_shape
=
[
1
,
3
,
224
,
224
],
max_shape
=
[
1
,
3
,
224
,
224
])))
])
configs/mmpretrain/classification_torchscript.py
0 → 100644
View file @
68661967
_base_
=
[
'../_base_/torchscript_config.py'
,
'../_base_/backends/torchscript.py'
]
ir_config
=
dict
(
input_shape
=
None
)
codebase_config
=
dict
(
type
=
'mmpretrain'
,
task
=
'Classification'
)
configs/mmpretrain/classification_tvm-ansor_static-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/tvm.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
224
,
224
]),
dtype
=
dict
(
input
=
'float32'
),
tuner
=
dict
(
type
=
'AutoScheduleTuner'
,
log_file
=
'tvm_tune_log.log'
,
num_measure_trials
=
2000
))
])
configs/mmpretrain/classification_tvm-autotvm-int8_static-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_tvm-autotvm_static-224x224.py'
]
calib_config
=
dict
(
create_calib
=
True
,
calib_file
=
'calib_data.h5'
)
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
224
,
224
]),
dtype
=
dict
(
input
=
'float32'
),
tuner
=
dict
(
type
=
'AutoTVMTuner'
,
log_file
=
'tvm_tune_log.log'
,
n_trial
=
1000
,
tuner
=
dict
(
type
=
'XGBTuner'
),
),
qconfig
=
dict
(
calibrate_mode
=
'kl_divergence'
,
weight_scale
=
'max'
),
)
])
configs/mmpretrain/classification_tvm-autotvm_static-224x224.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/tvm.py'
]
onnx_config
=
dict
(
input_shape
=
[
224
,
224
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
224
,
224
]),
dtype
=
dict
(
input
=
'float32'
),
tuner
=
dict
(
type
=
'AutoTVMTuner'
,
log_file
=
'tvm_tune_log.log'
,
n_trial
=
1000
,
tuner
=
dict
(
type
=
'XGBTuner'
),
))
])
configs/mmpretrain/classification_vacc-fp16_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/vacc.py'
]
backend_config
=
dict
(
common_config
=
dict
(
vdsp_params_info
=
dict
(
vdsp_op_type
=
300
,
iimage_format
=
5000
,
iimage_width
=
256
,
iimage_height
=
256
,
iimage_width_pitch
=
256
,
iimage_height_pitch
=
256
,
short_edge_threshold
=
256
,
resize_type
=
1
,
color_cvt_code
=
2
,
color_space
=
0
,
crop_size
=
224
,
meanr
=
22459
,
meang
=
22340
,
meanb
=
22136
,
stdr
=
21325
,
stdg
=
21284
,
stdb
=
21292
,
norma_type
=
3
)),
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
224
,
224
]),
qconfig
=
dict
(
dtype
=
'fp16'
))
])
configs/mmpretrain/classification_vacc-int8_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./classification_static.py'
,
'../_base_/backends/vacc.py'
]
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
224
,
224
]),
qconfig
=
dict
(
dtype
=
'int8'
))
])
configs/mmrotate/rotated-detection_onnxruntime-fp16_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_static.py'
,
'../_base_/backends/onnxruntime-fp16.py'
]
onnx_config
=
dict
(
output_names
=
[
'dets'
,
'labels'
],
input_shape
=
[
1024
,
1024
],
dynamic_axes
=
{
'input'
:
{
0
:
'batch'
,
2
:
'height'
,
3
:
'width'
},
'dets'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
'labels'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
})
backend_config
=
dict
(
common_config
=
dict
(
op_block_list
=
[
'NMSRotated'
,
'Resize'
]))
configs/mmrotate/rotated-detection_onnxruntime_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_onnxruntime_static.py'
]
onnx_config
=
dict
(
dynamic_axes
=
{
'input'
:
{
0
:
'batch'
,
2
:
'height'
,
3
:
'width'
},
'dets'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
'labels'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
},
)
configs/mmrotate/rotated-detection_onnxruntime_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_static.py'
,
'../_base_/backends/onnxruntime.py'
]
onnx_config
=
dict
(
output_names
=
[
'dets'
,
'labels'
],
input_shape
=
[
1024
,
1024
])
configs/mmrotate/rotated-detection_sdk_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_static.py'
,
'../_base_/backends/sdk.py'
]
codebase_config
=
dict
(
model_type
=
'sdk'
)
backend_config
=
dict
(
pipeline
=
[
dict
(
type
=
'LoadImageFromFile'
),
dict
(
type
=
'Collect'
,
keys
=
[
'img'
],
meta_keys
=
[
'filename'
,
'ori_shape'
])
])
configs/mmrotate/rotated-detection_static.py
0 → 100644
View file @
68661967
_base_
=
[
'../_base_/onnx_config.py'
]
codebase_config
=
dict
(
type
=
'mmrotate'
,
task
=
'RotatedDetection'
,
post_processing
=
dict
(
score_threshold
=
0.05
,
iou_threshold
=
0.1
,
pre_top_k
=
3000
,
keep_top_k
=
2000
,
max_output_boxes_per_class
=
2000
))
configs/mmrotate/rotated-detection_tensorrt-fp16_dynamic-320x320-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_tensorrt_dynamic-320x320-1024x1024.py'
]
backend_config
=
dict
(
common_config
=
dict
(
fp16_mode
=
True
))
configs/mmrotate/rotated-detection_tensorrt-fp16_static-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_static.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
onnx_config
=
dict
(
output_names
=
[
'dets'
,
'labels'
],
input_shape
=
(
1024
,
1024
))
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
1024
,
1024
],
opt_shape
=
[
1
,
3
,
1024
,
1024
],
max_shape
=
[
1
,
3
,
1024
,
1024
])))
])
configs/mmrotate/rotated-detection_tensorrt_dynamic-320x320-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./rotated-detection_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
output_names
=
[
'dets'
,
'labels'
],
input_shape
=
None
,
dynamic_axes
=
{
'input'
:
{
0
:
'batch'
,
2
:
'height'
,
3
:
'width'
},
'dets'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
'labels'
:
{
0
:
'batch'
,
1
:
'num_dets'
,
},
},
)
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
320
,
320
],
opt_shape
=
[
1
,
3
,
1024
,
1024
],
max_shape
=
[
1
,
3
,
1024
,
1024
])))
])
configs/mmseg/segmentation_ascend_static-1024x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/ascend.py'
]
onnx_config
=
dict
(
input_shape
=
[
2048
,
1024
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
[
1
,
3
,
1024
,
2048
]))])
configs/mmseg/segmentation_ascend_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/ascend.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
[
1
,
3
,
512
,
1024
]))])
Prev
1
…
11
12
13
14
15
16
17
18
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment