-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,545 additions
and
4 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_SATRN/config/_base_/datasets/CASIA_HWDB_official_1x_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CASIA_HWDB_official_1x_data_textrecog_data_root = '/lirunrui/datasets/mmocr_CASIA_HWDB_official_1x_dataset' | ||
|
||
CASIA_HWDB_official_1x_data_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_1x_data_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
CASIA_HWDB_official_1x_data_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_1x_data_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/CASIA_HWDB_chineseocr_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CASIA_HWDB_chineseocr_data_textrecog_data_root = '/lirunrui/datasets/mmocr_CASIA_HWDB_chinese_ocr_dataset' | ||
|
||
CASIA_HWDB_chineseocr_data_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_chineseocr_data_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
CASIA_HWDB_chineseocr_data_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_chineseocr_data_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/CASIA_HWDB_official_1x_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CASIA_HWDB_official_1x_data_textrecog_data_root = '/lirunrui/datasets/mmocr_CASIA_HWDB_official_1x_dataset' | ||
|
||
CASIA_HWDB_official_1x_data_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_1x_data_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
CASIA_HWDB_official_1x_data_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_1x_data_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
21 changes: 21 additions & 0 deletions
21
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/CASIA_HWDB_official_2x_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CASIA_HWDB_official_2x_data_textrecog_data_root = '/lirunrui/datasets/mmocr_CASIA_HWDB_official_2x_dataset' | ||
|
||
CASIA_HWDB_official_2x_data_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_2x_data_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
CASIA_HWDB_official_2x_data_textrecog_val = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_2x_data_textrecog_data_root, | ||
ann_file='textrecog_val.json', | ||
# test_mode=True, # 这玩意我也当做训练集扔进去 | ||
pipeline=None) | ||
|
||
CASIA_HWDB_official_2x_data_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=CASIA_HWDB_official_2x_data_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/bnu_EnsExam_ppocrlabel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
bnu_EnsExam_ppocrlabel_textrecog_data_root = '/lirunrui/datasets/mmocr_bnu_EnsExam_PPOCRLabel' | ||
|
||
bnu_EnsExam_ppocrlabel_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=bnu_EnsExam_ppocrlabel_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
bnu_EnsExam_ppocrlabel_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=bnu_EnsExam_ppocrlabel_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
test_mode=True, | ||
pipeline=None) |
8 changes: 8 additions & 0 deletions
8
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/coco_text_v1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cocotextv1_textrecog_data_root = 'data/rec/coco_text_v1' | ||
|
||
cocotextv1_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=cocotextv1_textrecog_data_root, | ||
ann_file='train_labels.json', | ||
test_mode=False, | ||
pipeline=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cute80_textrecog_data_root = 'data/cute80' | ||
|
||
cute80_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=cute80_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
8 changes: 8 additions & 0 deletions
8
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/icdar2011.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
icdar2011_textrecog_data_root = 'data/rec/icdar_2011/' | ||
|
||
icdar2011_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=icdar2011_textrecog_data_root, | ||
ann_file='train_labels.json', | ||
test_mode=False, | ||
pipeline=None) |
21 changes: 21 additions & 0 deletions
21
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/icdar2013.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
icdar2013_textrecog_data_root = 'data/icdar2013' | ||
|
||
icdar2013_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=icdar2013_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
icdar2013_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=icdar2013_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) | ||
|
||
icdar2013_857_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=icdar2013_textrecog_data_root, | ||
ann_file='textrecog_test_857.json', | ||
test_mode=True, | ||
pipeline=None) |
21 changes: 21 additions & 0 deletions
21
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/icdar2015.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
icdar2015_textrecog_data_root = 'data/icdar2015' | ||
|
||
icdar2015_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=icdar2015_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
icdar2015_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=icdar2015_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) | ||
|
||
icdar2015_1811_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=icdar2015_textrecog_data_root, | ||
ann_file='textrecog_test_1811.json', | ||
test_mode=True, | ||
pipeline=None) |
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/iiit5k.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
iiit5k_textrecog_data_root = 'data/iiit5k' | ||
|
||
iiit5k_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=iiit5k_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
iiit5k_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=iiit5k_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
13 changes: 13 additions & 0 deletions
13
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/mjsynth.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mjsynth_textrecog_data_root = 'data/mjsynth' | ||
|
||
mjsynth_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=mjsynth_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
mjsynth_sub_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=mjsynth_textrecog_data_root, | ||
ann_file='subset_textrecog_train.json', | ||
pipeline=None) |
24 changes: 24 additions & 0 deletions
24
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/scut_hccdoc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
scut_hccdoc_textrecog_data_root = '/lirunrui/datasets/mmocr_SCUT_HCCDoc_Dataset' | ||
default_hooks = dict( | ||
|
||
visualization=dict( | ||
type='VisualizationHook', | ||
interval=1, | ||
enable=False, | ||
show=False, | ||
draw_gt=False, | ||
draw_pred=False, | ||
font_properties='/usr/share/fonts/fonts_library/simsun.ttc'), | ||
) | ||
scut_hccdoc_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=scut_hccdoc_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
scut_hccdoc_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=scut_hccdoc_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
svt_textrecog_data_root = 'data/svt' | ||
|
||
svt_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=svt_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
svt_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=svt_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
14 changes: 14 additions & 0 deletions
14
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/svtp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
svtp_textrecog_data_root = 'data/svtp' | ||
|
||
svtp_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=svtp_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
svtp_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=svtp_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
19 changes: 19 additions & 0 deletions
19
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/synthtext.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
synthtext_textrecog_data_root = '/lirunrui/datasets/synthtext' | ||
|
||
synthtext_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=synthtext_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
pipeline=None) | ||
|
||
synthtext_sub_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=synthtext_textrecog_data_root, | ||
ann_file='subset_textrecog_train.json', | ||
pipeline=None) | ||
|
||
synthtext_an_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=synthtext_textrecog_data_root, | ||
ann_file='alphanumeric_textrecog_train.json', | ||
pipeline=None) |
8 changes: 8 additions & 0 deletions
8
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/synthtext_add.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
synthtext_add_textrecog_data_root = 'data/rec/synthtext_add/' | ||
|
||
synthtext_add_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=synthtext_add_textrecog_data_root, | ||
ann_file='train_labels.json', | ||
test_mode=False, | ||
pipeline=None) |
15 changes: 15 additions & 0 deletions
15
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/totaltext.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
totaltext_textrecog_data_root = 'data/totaltext/' | ||
|
||
totaltext_textrecog_train = dict( | ||
type='OCRDataset', | ||
data_root=totaltext_textrecog_data_root, | ||
ann_file='textrecog_train.json', | ||
test_mode=False, | ||
pipeline=None) | ||
|
||
totaltext_textrecog_test = dict( | ||
type='OCRDataset', | ||
data_root=totaltext_textrecog_data_root, | ||
ann_file='textrecog_test.json', | ||
test_mode=True, | ||
pipeline=None) |
17 changes: 17 additions & 0 deletions
17
lrr_ocr/lrr_robust_scanner/configs/_base_/datasets/toy_data.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
toy_data_root = 'tests/data/rec_toy_dataset/' | ||
|
||
toy_rec_train = dict( | ||
type='OCRDataset', | ||
data_root=toy_data_root, | ||
data_prefix=dict(img_path='imgs/'), | ||
ann_file='labels.json', | ||
pipeline=None, | ||
test_mode=False) | ||
|
||
toy_rec_test = dict( | ||
type='OCRDataset', | ||
data_root=toy_data_root, | ||
data_prefix=dict(img_path='imgs/'), | ||
ann_file='labels.json', | ||
pipeline=None, | ||
test_mode=True) |
Oops, something went wrong.