mmocr/projects/SPTS/config/_base_/datasets/totaltext.py

16 lines
462 B
Python

totaltext_textspotting_data_root = 'data/totaltext'
totaltext_textspotting_train = dict(
type='OCRDataset',
data_root=totaltext_textspotting_data_root,
ann_file='textspotting_train.json',
filter_cfg=dict(filter_empty_gt=True, min_size=32),
pipeline=None)
totaltext_textspotting_test = dict(
type='OCRDataset',
data_root=totaltext_textspotting_data_root,
ann_file='textspotting_test.json',
test_mode=True,
pipeline=None)