Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fix prepare icdar2013 dataset with lmdb flag #1822

Open
wants to merge 2 commits into
base: dev-1.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions dataset_zoo/icdar2013/textrecog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@
save_name='ic13_textrecog_train_img_gt.zip',
md5='6f0dbc823645968030878df7543f40a4',
content=['image'],
mapping=[
# ['ic13_textrecog_train_img_gt/gt.txt',
# 'annotations/train.txt'],
['ic13_textrecog_train_img_gt', 'textrecog_imgs/train']
]),
mapping=[[
'ic13_textrecog_train_img_gt/gt.txt',
'annotations/train.txt'
], ['ic13_textrecog_train_img_gt', 'textrecog_imgs/train']]),
dict(
url='https://download.openmmlab.com/mmocr/data/1.x/recog/'
'icdar_2013/train_labels.json',
save_name='ic13_train_labels.json',
md5='008fcd0056e72c4cf3064fb4d1fce81b',
content=['annotation'],
mapping=[['ic13_train_labels.json', 'textrecog_train.json']]),
]))
]),
gatherer=dict(type='MonoGatherer', ann_name='train.txt'),
parser=dict(
type='ICDARTxtTextRecogAnnParser', separator=', ',
format='img, text'), # noqa
packer=dict(type='TextRecogPacker'),
dumper=dict(type='JsonDumper'),
)

# Note that we offer two versions of test set annotations as follows.Please
# choose one of them to download and comment the other. By default, we use the
Expand Down