Spaces:
Sleeping
Sleeping
File size: 2,529 Bytes
24c4def |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
data_root = 'data/wildreceipt'
cache_path = 'data/cache'
train_preparer = dict(
obtainer=dict(
type='NaiveDataObtainer',
cache_path=cache_path,
files=[
dict(
url='https://download.openmmlab.com/mmocr/data/'
'wildreceipt.tar',
save_name='wildreceipt.tar',
md5='2a2c4a1b4777fb4fe185011e17ad46ae',
content=['image', 'annotation'],
mapping=[
[
'wildreceipt/wildreceipt/class_list.txt',
'class_list.txt'
],
['wildreceipt/wildreceipt/dict.txt', 'dict.txt'],
[
'wildreceipt/wildreceipt/train.txt',
'annotations/train.txt'
],
[
'wildreceipt/wildreceipt/image_files/*/*/*.*',
'image_files'
],
]),
]),
gatherer=dict(
type='MonoGatherer', ann_name='train.txt', img_dir='image_files'),
parser=dict(type='WildreceiptKIEAnnParser'),
packer=dict(type='WildReceiptPacker'),
dumper=dict(type='WildreceiptOpensetDumper'),
)
test_preparer = dict(
obtainer=dict(
type='NaiveDataObtainer',
cache_path=cache_path,
files=[
dict(
url='https://download.openmmlab.com/mmocr/data/'
'wildreceipt.tar',
save_name='wildreceipt.tar',
md5='2a2c4a1b4777fb4fe185011e17ad46ae',
content=['image', 'annotation'],
mapping=[
[
'wildreceipt/wildreceipt/class_list.txt',
'class_list.txt'
],
['wildreceipt/wildreceipt/dict.txt', 'dict.txt'],
[
'wildreceipt/wildreceipt/test.txt',
'annotations/test.txt'
],
[
'wildreceipt/wildreceipt/image_files/*/*/*.*',
'image_files'
],
]),
]),
gatherer=dict(
type='MonoGatherer', img_dir='image_files', ann_name='test.txt'),
parser=dict(type='WildreceiptKIEAnnParser'),
packer=dict(type='WildReceiptPacker'),
dumper=dict(type='WildreceiptOpensetDumper'),
)
delete = ['wildreceipt', 'annotations']
|