mmdeploy/configs/mmocr/text-detection/text-detection_sdk_dynamic.py
AllentDan 97e0d1228f
SDK ocr 2.0 (#1006)
* add deploy runner

* fix text_det wrapper

* fix recog

* save

* add crnn support

* update with_padding

* add short scale aspect jitter

* update regression test

* torch2ts

* add test data

* resolve comments
2022-09-19 15:08:51 +08:00

14 lines
382 B
Python

_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'])
])