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
281 additions
and
0 deletions
+281
-0
configs/mmseg/segmentation_tensorrt-fp16_dynamic-512x1024-2048x2048.py
.../segmentation_tensorrt-fp16_dynamic-512x1024-2048x2048.py
+11
-0
configs/mmseg/segmentation_tensorrt-fp16_static-1024x1024.py
configs/mmseg/segmentation_tensorrt-fp16_static-1024x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt-fp16_static-1024x2048.py
configs/mmseg/segmentation_tensorrt-fp16_static-1024x2048.py
+13
-0
configs/mmseg/segmentation_tensorrt-fp16_static-512x1024.py
configs/mmseg/segmentation_tensorrt-fp16_static-512x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt-fp16_static-512x512.py
configs/mmseg/segmentation_tensorrt-fp16_static-512x512.py
+13
-0
configs/mmseg/segmentation_tensorrt-int8_dynamic-512x1024-2048x2048.py
.../segmentation_tensorrt-int8_dynamic-512x1024-2048x2048.py
+11
-0
configs/mmseg/segmentation_tensorrt-int8_static-1024x1024.py
configs/mmseg/segmentation_tensorrt-int8_static-1024x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt-int8_static-1024x2048.py
configs/mmseg/segmentation_tensorrt-int8_static-1024x2048.py
+13
-0
configs/mmseg/segmentation_tensorrt-int8_static-512x1024.py
configs/mmseg/segmentation_tensorrt-int8_static-512x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt-int8_static-512x512.py
configs/mmseg/segmentation_tensorrt-int8_static-512x512.py
+13
-0
configs/mmseg/segmentation_tensorrt_dynamic-512x1024-2048x2048.py
...mmseg/segmentation_tensorrt_dynamic-512x1024-2048x2048.py
+11
-0
configs/mmseg/segmentation_tensorrt_static-1024x1024.py
configs/mmseg/segmentation_tensorrt_static-1024x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt_static-1024x2048.py
configs/mmseg/segmentation_tensorrt_static-1024x2048.py
+13
-0
configs/mmseg/segmentation_tensorrt_static-512x1024.py
configs/mmseg/segmentation_tensorrt_static-512x1024.py
+13
-0
configs/mmseg/segmentation_tensorrt_static-512x512.py
configs/mmseg/segmentation_tensorrt_static-512x512.py
+13
-0
configs/mmseg/segmentation_torchscript.py
configs/mmseg/segmentation_torchscript.py
+6
-0
configs/mmseg/segmentation_tvm-ansor_static-512x1024.py
configs/mmseg/segmentation_tvm-ansor_static-512x1024.py
+12
-0
configs/mmseg/segmentation_tvm-autotvm_static-512x1024.py
configs/mmseg/segmentation_tvm-autotvm_static-512x1024.py
+13
-0
configs/mmseg/segmentation_vacc-fp16_static_512x512.py
configs/mmseg/segmentation_vacc-fp16_static_512x512.py
+41
-0
configs/mmseg/segmentation_vacc-int8_static_512x512.py
configs/mmseg/segmentation_vacc-int8_static_512x512.py
+20
-0
No files found.
configs/mmseg/segmentation_tensorrt-fp16_dynamic-512x1024-2048x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_dynamic.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
2048
,
2048
])))
])
configs/mmseg/segmentation_tensorrt-fp16_static-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
onnx_config
=
dict
(
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/mmseg/segmentation_tensorrt-fp16_static-1024x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
onnx_config
=
dict
(
input_shape
=
[
2048
,
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
,
2048
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
1024
,
2048
])))
])
configs/mmseg/segmentation_tensorrt-fp16_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
512
,
1024
],
max_shape
=
[
1
,
3
,
512
,
1024
])))
])
configs/mmseg/segmentation_tensorrt-fp16_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-fp16.py'
]
onnx_config
=
dict
(
input_shape
=
[
512
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
512
],
opt_shape
=
[
1
,
3
,
512
,
512
],
max_shape
=
[
1
,
3
,
512
,
512
])))
])
configs/mmseg/segmentation_tensorrt-int8_dynamic-512x1024-2048x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_dynamic.py'
,
'../_base_/backends/tensorrt-int8.py'
]
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
2048
,
2048
])))
])
configs/mmseg/segmentation_tensorrt-int8_static-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
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/mmseg/segmentation_tensorrt-int8_static-1024x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
input_shape
=
[
2048
,
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
,
2048
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
1024
,
2048
])))
])
configs/mmseg/segmentation_tensorrt-int8_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
512
,
1024
],
max_shape
=
[
1
,
3
,
512
,
1024
])))
])
configs/mmseg/segmentation_tensorrt-int8_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt-int8.py'
]
onnx_config
=
dict
(
input_shape
=
[
512
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
512
],
opt_shape
=
[
1
,
3
,
512
,
512
],
max_shape
=
[
1
,
3
,
512
,
512
])))
])
configs/mmseg/segmentation_tensorrt_dynamic-512x1024-2048x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_dynamic.py'
,
'../_base_/backends/tensorrt.py'
]
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
2048
,
2048
])))
])
configs/mmseg/segmentation_tensorrt_static-1024x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
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/mmseg/segmentation_tensorrt_static-1024x2048.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
input_shape
=
[
2048
,
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
,
2048
],
opt_shape
=
[
1
,
3
,
1024
,
2048
],
max_shape
=
[
1
,
3
,
1024
,
2048
])))
])
configs/mmseg/segmentation_tensorrt_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
1024
],
opt_shape
=
[
1
,
3
,
512
,
1024
],
max_shape
=
[
1
,
3
,
512
,
1024
])))
])
configs/mmseg/segmentation_tensorrt_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tensorrt.py'
]
onnx_config
=
dict
(
input_shape
=
[
512
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
max_workspace_size
=
1
<<
30
),
model_inputs
=
[
dict
(
input_shapes
=
dict
(
input
=
dict
(
min_shape
=
[
1
,
3
,
512
,
512
],
opt_shape
=
[
1
,
3
,
512
,
512
],
max_shape
=
[
1
,
3
,
512
,
512
])))
])
configs/mmseg/segmentation_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
=
'mmseg'
,
task
=
'Segmentation'
)
configs/mmseg/segmentation_tvm-ansor_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tvm.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
512
,
1024
]),
dtype
=
dict
(
input
=
'float32'
),
tuner
=
dict
(
type
=
'AutoScheduleTuner'
,
log_file
=
'tvm_tune_log.log'
,
num_measure_trials
=
2000
))
])
configs/mmseg/segmentation_tvm-autotvm_static-512x1024.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/tvm.py'
]
onnx_config
=
dict
(
input_shape
=
[
1024
,
512
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
512
,
1024
]),
dtype
=
dict
(
input
=
'float32'
),
tuner
=
dict
(
type
=
'AutoTVMTuner'
,
log_file
=
'tvm_tune_log.log'
,
n_trial
=
1000
,
tuner
=
dict
(
type
=
'XGBTuner'
)))
])
configs/mmseg/segmentation_vacc-fp16_static_512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/vacc.py'
]
onnx_config
=
dict
(
input_shape
=
[
512
,
512
])
backend_config
=
dict
(
common_config
=
dict
(
vdsp_params_info
=
dict
(
vdsp_op_type
=
301
,
iimage_format
=
5000
,
iimage_width
=
512
,
iimage_height
=
512
,
oimage_width
=
512
,
oimage_height
=
512
,
iimage_width_pitch
=
512
,
iimage_height_pitch
=
512
,
resize_type
=
1
,
color_cvt_code
=
2
,
color_space
=
0
,
meanr
=
22459
,
meang
=
22340
,
meanb
=
22136
,
stdr
=
21325
,
stdg
=
21284
,
stdb
=
21292
,
norma_type
=
3
)),
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
512
,
512
]))])
codebase_config
=
dict
(
model_type
=
'vacc_seg'
)
partition_config
=
dict
(
type
=
'vacc_seg'
,
apply_marks
=
True
,
partition_cfg
=
[
dict
(
save_file
=
'model.onnx'
,
start
=
[
'segmentor_forward:output'
],
# 'decode_head' will skip `ArgMax`
# 'seg_maps' will skip `Resize` and `ArgMax`
end
=
[
'decode_head:input'
],
output_names
=
[
'feat'
])
])
configs/mmseg/segmentation_vacc-int8_static_512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./segmentation_static.py'
,
'../_base_/backends/vacc.py'
]
onnx_config
=
dict
(
input_shape
=
[
512
,
512
])
backend_config
=
dict
(
model_inputs
=
[
dict
(
shape
=
dict
(
input
=
[
1
,
3
,
512
,
512
]),
qconfig
=
dict
(
dtype
=
'int8'
))
])
partition_config
=
dict
(
type
=
'vacc_seg'
,
apply_marks
=
True
,
partition_cfg
=
[
dict
(
save_file
=
'model.onnx'
,
start
=
[
'segmentor_forward:output'
],
# 'decode_head' will skip `ArgMax`
# 'seg_maps' will skip `Resize` and `ArgMax`
end
=
[
'decode_head:input'
],
output_names
=
[
'feat'
])
])
Prev
1
…
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