2022-11-21 14:24:04 +08:00
|
|
|
# The official annotations of CUTE80 has some typos, and we have provided
|
|
|
|
# the fixed version as done in
|
|
|
|
# https://github.com/clovaai/deep-text-recognition-benchmark by default.
|
|
|
|
# If you want to use the original version, please comment out the following
|
2023-03-03 15:27:19 +08:00
|
|
|
# lines: L10-L31, and uncomment L33-L63
|
2022-11-21 14:24:04 +08:00
|
|
|
|
2022-11-15 19:50:32 +08:00
|
|
|
data_root = 'data/cute80'
|
|
|
|
cache_path = 'data/cache'
|
|
|
|
|
2023-03-03 15:27:19 +08:00
|
|
|
test_preparer = dict(
|
|
|
|
obtainer=dict(
|
|
|
|
type='NaiveDataObtainer',
|
|
|
|
cache_path=cache_path,
|
|
|
|
data_root=data_root,
|
|
|
|
files=[
|
|
|
|
dict(
|
|
|
|
url='https://download.openmmlab.com/mmocr/data/mixture/ct80/'
|
|
|
|
'timage.tar.gz',
|
|
|
|
save_name='ct80.tar.gz',
|
|
|
|
md5='9f3b1fe0e76f1fdfc70de3a365603d5e',
|
|
|
|
split=['test'],
|
|
|
|
content=['image'],
|
|
|
|
mapping=[['ct80/timage', 'textrecog_imgs/test']]),
|
|
|
|
dict(
|
|
|
|
url='https://download.openmmlab.com/mmocr/data/1.x/recog/ct80/'
|
|
|
|
'textrecog_test.json',
|
|
|
|
save_name='textrecog_test.json',
|
|
|
|
md5='9c5c79d843b900325e7fd453b318cad9',
|
|
|
|
split=['test'],
|
|
|
|
content=['annotation'])
|
|
|
|
]))
|
2022-11-15 19:50:32 +08:00
|
|
|
|
2023-03-03 15:27:19 +08:00
|
|
|
# test_preparer = dict(
|
|
|
|
# obtainer=dict(
|
|
|
|
# type='NaiveDataObtainer',
|
|
|
|
# cache_path=cache_path,
|
|
|
|
# data_root=data_root,
|
|
|
|
# files=[
|
|
|
|
# dict(
|
|
|
|
# url='https://download.openmmlab.com/mmocr/data/mixture/ct80/'
|
|
|
|
# 'timage.tar.gz',
|
|
|
|
# save_name='ct80.tar.gz',
|
|
|
|
# md5='9f3b1fe0e76f1fdfc70de3a365603d5e',
|
|
|
|
# split=['test'],
|
|
|
|
# content=['image'],
|
|
|
|
# mapping=[['ct80/timage', 'textrecog_imgs/test']]),
|
|
|
|
# dict(
|
|
|
|
# url='https://download.openmmlab.com/mmocr/data/mixture/ct80/'
|
|
|
|
# 'test_label.txt',
|
|
|
|
# save_name='ct80_test.txt',
|
|
|
|
# md5='f679dec62916d3268aff9cd81990d260',
|
|
|
|
# split=['test'],
|
|
|
|
# content=['annotation'],
|
|
|
|
# mapping=[['ct80_test.txt', 'annotations/test.txt']])
|
|
|
|
# ]),
|
|
|
|
# gatherer=dict(type='MonoGatherer', ann_name='test.txt'),
|
2022-11-21 14:24:04 +08:00
|
|
|
# parser=dict(
|
|
|
|
# type='ICDARTxtTextRecogAnnParser',
|
|
|
|
# separator=' ',
|
|
|
|
# format='img text ignore1 ignore2'),
|
2023-03-03 15:27:19 +08:00
|
|
|
# packer=dict(type='TextRecogPacker'),
|
|
|
|
# dumper=dict(type='JsonDumper'),
|
|
|
|
# )
|
|
|
|
delete = ['ct80']
|
2022-11-21 14:24:04 +08:00
|
|
|
config_generator = dict(
|
|
|
|
type='TextRecogConfigGenerator', data_root=data_root, train_anns=None)
|