mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* WIP test_mmocr 8 out of 20 * test_mmocr_export * test mmocr apis * add test data * add mmocr model unittest 5 passed 1 failed * finish mmocr unittest * fix lint * fix yapf * fix isort * fix flake8 * fix docformatter * fix docformatter * try to fix unittest after merge master * Change test.py for backend.DEFAULT * fix flake8 * fix ut * fix yapf * fix ut build * fix yapf * fix mmocr_export ut * fix mmocr_apis ort not cuda * remove explicit .forward * remove backendwrapper * simplify the crnn and dbnet config * simplify instance_test.json * add another case of decoder * increase coverage of test_mmocr_models base_recognizer * improve coverage * improve encode_decoder coverage * reply for grimoire codereview * what if not check cuda? * remove image data * reply to runningleon code review * fix fpnc * fix lint * try to fix CI UT error * fix fpnc with and wo custom ops * fix yapf * skip fpnc when cuda is not ready in ci * reply for code review * reply for code review * fix yapf * reply for code review * fix yapf * fix conflict * remove unmatched data path * remove unnecessary comments
16 lines
432 B
Python
Executable File
16 lines
432 B
Python
Executable File
_base_ = []
|
|
|
|
# model
|
|
label_convertor = dict(
|
|
type='CTCConvertor', dict_type='DICT36', with_unknown=False, lower=True)
|
|
|
|
model = dict(
|
|
type='CRNNNet',
|
|
preprocessor=None,
|
|
backbone=dict(type='VeryDeepVgg', leaky_relu=False, input_channels=1),
|
|
encoder=None,
|
|
decoder=dict(type='CRNNDecoder', in_channels=512, rnn_flag=True),
|
|
loss=dict(type='CTCLoss'),
|
|
label_convertor=label_convertor,
|
|
pretrained=None)
|