2022-11-15 18:54:30 +08:00
|
|
|
data_root = 'data/svt'
|
|
|
|
cache_path = 'data/cache'
|
|
|
|
|
2023-03-03 15:27:19 +08:00
|
|
|
train_preparer = dict(
|
|
|
|
obtainer=dict(
|
|
|
|
type='NaiveDataObtainer',
|
|
|
|
cache_path=cache_path,
|
|
|
|
files=[
|
|
|
|
dict(
|
|
|
|
url='http://www.iapr-tc11.org/dataset/SVT/svt.zip',
|
|
|
|
save_name='svt.zip',
|
|
|
|
md5='42d19160010d990ae6223b14f45eff88',
|
|
|
|
content=['image', 'annotations'],
|
|
|
|
mapping=[['svt/svt1/train.xml', 'annotations/train.xml'],
|
|
|
|
['svt/svt1/img', 'textdet_imgs/img']]),
|
|
|
|
]),
|
2022-12-06 16:03:12 +08:00
|
|
|
gatherer=dict(
|
2023-03-03 15:27:19 +08:00
|
|
|
type='MonoGatherer', ann_name='train.xml', img_dir='textdet_imgs/img'),
|
|
|
|
parser=dict(type='SVTTextDetAnnParser'),
|
|
|
|
packer=dict(type='TextDetPacker'),
|
2022-11-15 18:54:30 +08:00
|
|
|
dumper=dict(type='JsonDumper'),
|
2023-03-03 15:27:19 +08:00
|
|
|
)
|
2022-11-23 10:28:45 +08:00
|
|
|
|
2023-03-03 15:27:19 +08:00
|
|
|
test_preparer = dict(
|
|
|
|
obtainer=dict(
|
|
|
|
type='NaiveDataObtainer',
|
|
|
|
cache_path=cache_path,
|
|
|
|
files=[
|
|
|
|
dict(
|
|
|
|
url='http://www.iapr-tc11.org/dataset/SVT/svt.zip',
|
|
|
|
save_name='svt.zip',
|
|
|
|
md5='42d19160010d990ae6223b14f45eff88',
|
|
|
|
content=['image', 'annotations'],
|
|
|
|
mapping=[['svt/svt1/test.xml', 'annotations/test.xml'],
|
|
|
|
['svt/svt1/img', 'textdet_imgs/img']]),
|
|
|
|
]),
|
|
|
|
gatherer=dict(
|
|
|
|
type='MonoGatherer', ann_name='test.xml', img_dir='textdet_imgs/img'),
|
|
|
|
parser=dict(type='SVTTextDetAnnParser'),
|
|
|
|
packer=dict(type='TextDetPacker'),
|
|
|
|
dumper=dict(type='JsonDumper'),
|
|
|
|
)
|
|
|
|
delete = ['annotations', 'svt']
|
|
|
|
config_generator = dict(type='TextDetConfigGenerator')
|