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
151 additions
and
0 deletions
+151
-0
configs/mmocr/text-detection/text-detection_ncnn_static.py
configs/mmocr/text-detection/text-detection_ncnn_static.py
+3
-0
configs/mmocr/text-detection/text-detection_onnxruntime-fp16_dynamic.py
...text-detection/text-detection_onnxruntime-fp16_dynamic.py
+3
-0
configs/mmocr/text-detection/text-detection_onnxruntime_dynamic.py
...mocr/text-detection/text-detection_onnxruntime_dynamic.py
+3
-0
configs/mmocr/text-detection/text-detection_onnxruntime_static.py
...mmocr/text-detection/text-detection_onnxruntime_static.py
+3
-0
configs/mmocr/text-detection/text-detection_openvino_dynamic-640x640.py
...text-detection/text-detection_openvino_dynamic-640x640.py
+6
-0
configs/mmocr/text-detection/text-detection_pplnn_dynamic-640x640.py
...cr/text-detection/text-detection_pplnn_dynamic-640x640.py
+5
-0
configs/mmocr/text-detection/text-detection_sdk_dynamic.py
configs/mmocr/text-detection/text-detection_sdk_dynamic.py
+13
-0
configs/mmocr/text-detection/text-detection_snpe_static.py
configs/mmocr/text-detection/text-detection_snpe_static.py
+3
-0
configs/mmocr/text-detection/text-detection_static.py
configs/mmocr/text-detection/text-detection_static.py
+2
-0
configs/mmocr/text-detection/text-detection_tensorrt-fp16_dynamic-320x320-2240x2240.py
...text-detection_tensorrt-fp16_dynamic-320x320-2240x2240.py
+13
-0
configs/mmocr/text-detection/text-detection_tensorrt-fp16_static-512x512.py
...-detection/text-detection_tensorrt-fp16_static-512x512.py
+15
-0
configs/mmocr/text-detection/text-detection_tensorrt-int8_dynamic-320x320-2240x2240.py
...text-detection_tensorrt-int8_dynamic-320x320-2240x2240.py
+13
-0
configs/mmocr/text-detection/text-detection_tensorrt-int8_static-512x512.py
...-detection/text-detection_tensorrt-int8_static-512x512.py
+15
-0
configs/mmocr/text-detection/text-detection_tensorrt_dynamic-320x320-2240x2240.py
...tion/text-detection_tensorrt_dynamic-320x320-2240x2240.py
+11
-0
configs/mmocr/text-detection/text-detection_tensorrt_static-512x512.py
.../text-detection/text-detection_tensorrt_static-512x512.py
+13
-0
configs/mmocr/text-detection/text-detection_torchscript.py
configs/mmocr/text-detection/text-detection_torchscript.py
+7
-0
configs/mmocr/text-recognition/text-recognition_dynamic.py
configs/mmocr/text-recognition/text-recognition_dynamic.py
+13
-0
configs/mmocr/text-recognition/text-recognition_ncnn_static.py
...gs/mmocr/text-recognition/text-recognition_ncnn_static.py
+3
-0
configs/mmocr/text-recognition/text-recognition_onnxruntime-fp16_dynamic.py
...-recognition/text-recognition_onnxruntime-fp16_dynamic.py
+4
-0
configs/mmocr/text-recognition/text-recognition_onnxruntime_dynamic.py
.../text-recognition/text-recognition_onnxruntime_dynamic.py
+3
-0
No files found.
configs/mmocr/text-detection/text-detection_ncnn_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_static.py'
,
'../../_base_/backends/ncnn.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
configs/mmocr/text-detection/text-detection_onnxruntime-fp16_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_dynamic.py'
,
'../../_base_/backends/onnxruntime-fp16.py'
]
configs/mmocr/text-detection/text-detection_onnxruntime_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_dynamic.py'
,
'../../_base_/backends/onnxruntime.py'
]
configs/mmocr/text-detection/text-detection_onnxruntime_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_static.py'
,
'../../_base_/backends/onnxruntime.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
configs/mmocr/text-detection/text-detection_openvino_dynamic-640x640.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_dynamic.py'
,
'../../_base_/backends/openvino.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
backend_config
=
dict
(
model_inputs
=
[
dict
(
opt_shapes
=
dict
(
input
=
[
1
,
3
,
640
,
640
]))])
configs/mmocr/text-detection/text-detection_pplnn_dynamic-640x640.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_dynamic.py'
,
'../../_base_/backends/pplnn.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
backend_config
=
dict
(
model_inputs
=
dict
(
opt_shape
=
[
1
,
3
,
640
,
640
]))
configs/mmocr/text-detection/text-detection_sdk_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_dynamic.py'
,
'../../_base_/backends/sdk.py'
]
codebase_config
=
dict
(
model_type
=
'sdk'
)
backend_config
=
dict
(
pipeline
=
[
dict
(
type
=
'LoadImageFromFile'
),
dict
(
type
=
'LoadOCRAnnotations'
,
with_polygon
=
True
,
with_bbox
=
True
,
with_label
=
True
),
dict
(
type
=
'PackTextDetInputs'
,
meta_keys
=
[
'img_path'
,
'ori_shape'
])
])
configs/mmocr/text-detection/text-detection_snpe_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_static.py'
,
'../../_base_/backends/snpe.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
configs/mmocr/text-detection/text-detection_static.py
0 → 100644
View file @
68661967
_base_
=
[
'../../_base_/onnx_config.py'
]
codebase_config
=
dict
(
type
=
'mmocr'
,
task
=
'TextDetection'
)
configs/mmocr/text-detection/text-detection_tensorrt-fp16_dynamic-320x320-2240x2240.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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
,
320
,
320
],
opt_shape
=
[
1
,
3
,
600
,
800
],
max_shape
=
[
1
,
3
,
2240
,
2240
])))
])
configs/mmocr/text-detection/text-detection_tensorrt-fp16_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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/mmocr/text-detection/text-detection_tensorrt-int8_dynamic-320x320-2240x2240.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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
,
320
,
320
],
opt_shape
=
[
1
,
3
,
600
,
800
],
max_shape
=
[
1
,
3
,
2240
,
2240
])))
])
configs/mmocr/text-detection/text-detection_tensorrt-int8_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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/mmocr/text-detection/text-detection_tensorrt_dynamic-320x320-2240x2240.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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
,
320
,
320
],
opt_shape
=
[
1
,
3
,
600
,
800
],
max_shape
=
[
1
,
3
,
2240
,
2240
])))
])
configs/mmocr/text-detection/text-detection_tensorrt_static-512x512.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-detection_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/mmocr/text-detection/text-detection_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
=
'mmocr'
,
task
=
'TextDetection'
)
configs/mmocr/text-recognition/text-recognition_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-recognition_static.py'
]
onnx_config
=
dict
(
dynamic_axes
=
{
'input'
:
{
0
:
'batch'
,
3
:
'width'
},
'output'
:
{
0
:
'batch'
,
1
:
'seq_len'
,
2
:
'num_classes'
}
},
)
configs/mmocr/text-recognition/text-recognition_ncnn_static.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-recognition_static.py'
,
'../../_base_/backends/ncnn.py'
]
onnx_config
=
dict
(
input_shape
=
None
)
configs/mmocr/text-recognition/text-recognition_onnxruntime-fp16_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-recognition_dynamic.py'
,
'../../_base_/backends/onnxruntime-fp16.py'
]
configs/mmocr/text-recognition/text-recognition_onnxruntime_dynamic.py
0 → 100644
View file @
68661967
_base_
=
[
'./text-recognition_dynamic.py'
,
'../../_base_/backends/onnxruntime.py'
]
Prev
1
…
6
7
8
9
10
11
12
13
14
…
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