mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
* fix #794: add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * Fix linting * after git rebase main * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * add GCAModule to plugins * coexist master and master_old * fix merge mmocr 0.5.0 conflict * fix lint error * update * [fix] remove remains in __init__ * [update] update code in review * update readme for master * Add docstr to MasterDecoder, refined MasterDecoder, remove MASTERLoss * Unify the output length of MasterDecoder in train and test mode; add test for it, remove MasterLoss * update readme * update * update metafile,README,demo/README,config,ocr.py * Update mmocr/utils/ocr.py * update Co-authored-by: gaotongxiao <gaotongxiao@gmail.com> Co-authored-by: Mountchicken <mountchicken@outlook.com>
31 lines
848 B
Python
31 lines
848 B
Python
_base_ = [
|
|
'../../_base_/default_runtime.py', '../../_base_/recog_models/master.py',
|
|
'../../_base_/schedules/schedule_adam_step_12e.py',
|
|
'../../_base_/recog_pipelines/master_pipeline.py',
|
|
'../../_base_/recog_datasets/toy_data.py'
|
|
]
|
|
|
|
train_list = {{_base_.train_list}}
|
|
test_list = {{_base_.test_list}}
|
|
|
|
train_pipeline = {{_base_.train_pipeline}}
|
|
test_pipeline = {{_base_.test_pipeline}}
|
|
|
|
data = dict(
|
|
workers_per_gpu=2,
|
|
samples_per_gpu=8,
|
|
train=dict(
|
|
type='UniformConcatDataset',
|
|
datasets=train_list,
|
|
pipeline=train_pipeline),
|
|
val=dict(
|
|
type='UniformConcatDataset',
|
|
datasets=test_list,
|
|
pipeline=test_pipeline),
|
|
test=dict(
|
|
type='UniformConcatDataset',
|
|
datasets=test_list,
|
|
pipeline=test_pipeline))
|
|
|
|
evaluation = dict(interval=1, metric='acc')
|