File size: 544 Bytes
a92ae91 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Text Recognition Training set, including:
# Synthetic Datasets: Syn90k
train_root = 'data/mixture/Syn90k'
train_img_prefix = f'{train_root}/mnt/ramdisk/max/90kDICT32px'
train_ann_file = f'{train_root}/label.lmdb'
train = dict(
type='OCRDataset',
img_prefix=train_img_prefix,
ann_file=train_ann_file,
loader=dict(
type='AnnFileLoader',
repeat=1,
file_format='lmdb',
parser=dict(type='LineJsonParser', keys=['filename', 'text'])),
pipeline=None,
test_mode=False)
train_list = [train]
|