Skip to content

Commit 9774dd6

Browse files
committed
Merge branch 'dev-1.x' into layoutlm
2 parents 1d0c5e3 + 1c91a98 commit 9774dd6

File tree

19 files changed

+1149
-139
lines changed

19 files changed

+1149
-139
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ English | [简体中文](README_zh-CN.md)
4242
</div>
4343
<div align="center">
4444
<a href="https://openmmlab.medium.com/" style="text-decoration:none;">
45-
<img src="https://user-images.githubusercontent.com/25839884/218352562-cdded397-b0f3-4ca1-b8dd-a60df8dca75b.png" width="3%" alt="" /></a>
45+
<img src="https://user-images.githubusercontent.com/25839884/219255827-67c1a27f-f8c5-46a9-811d-5e57448c61d1.png" width="3%" alt="" /></a>
4646
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
4747
<a href="https://discord.gg/raweFPmdzG" style="text-decoration:none;">
4848
<img src="https://user-images.githubusercontent.com/25839884/218347213-c080267f-cbb6-443e-8532-8e1ed9a58ea9.png" width="3%" alt="" /></a>
@@ -52,6 +52,12 @@ English | [简体中文](README_zh-CN.md)
5252
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
5353
<a href="https://www.youtube.com/openmmlab" style="text-decoration:none;">
5454
<img src="https://user-images.githubusercontent.com/25839884/218346691-ceb2116a-465a-40af-8424-9f30d2348ca9.png" width="3%" alt="" /></a>
55+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
56+
<a href="https://space.bilibili.com/1293512903" style="text-decoration:none;">
57+
<img src="https://user-images.githubusercontent.com/25839884/219026751-d7d14cce-a7c9-4e82-9942-8375fca65b99.png" width="3%" alt="" /></a>
58+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
59+
<a href="https://www.zhihu.com/people/openmmlab" style="text-decoration:none;">
60+
<img src="https://user-images.githubusercontent.com/25839884/219026120-ba71e48b-6e94-4bd4-b4e9-b7d175b5e362.png" width="3%" alt="" /></a>
5561
</div>
5662

5763
## Latest Updates

README_zh-CN.md

+20
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@
4141

4242
</div>
4343

44+
<div align="center">
45+
<a href="https://openmmlab.medium.com/" style="text-decoration:none;">
46+
<img src="https://user-images.githubusercontent.com/25839884/219255827-67c1a27f-f8c5-46a9-811d-5e57448c61d1.png" width="3%" alt="" /></a>
47+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
48+
<a href="https://discord.gg/raweFPmdzG" style="text-decoration:none;">
49+
<img src="https://user-images.githubusercontent.com/25839884/218347213-c080267f-cbb6-443e-8532-8e1ed9a58ea9.png" width="3%" alt="" /></a>
50+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
51+
<a href="https://twitter.com/OpenMMLab" style="text-decoration:none;">
52+
<img src="https://user-images.githubusercontent.com/25839884/218346637-d30c8a0f-3eba-4699-8131-512fb06d46db.png" width="3%" alt="" /></a>
53+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
54+
<a href="https://www.youtube.com/openmmlab" style="text-decoration:none;">
55+
<img src="https://user-images.githubusercontent.com/25839884/218346691-ceb2116a-465a-40af-8424-9f30d2348ca9.png" width="3%" alt="" /></a>
56+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
57+
<a href="https://space.bilibili.com/1293512903" style="text-decoration:none;">
58+
<img src="https://user-images.githubusercontent.com/25839884/219026751-d7d14cce-a7c9-4e82-9942-8375fca65b99.png" width="3%" alt="" /></a>
59+
<img src="https://user-images.githubusercontent.com/25839884/218346358-56cc8e2f-a2b8-487f-9088-32480cceabcf.png" width="3%" alt="" />
60+
<a href="https://www.zhihu.com/people/openmmlab" style="text-decoration:none;">
61+
<img src="https://user-images.githubusercontent.com/25839884/219026120-ba71e48b-6e94-4bd4-b4e9-b7d175b5e362.png" width="3%" alt="" /></a>
62+
</div>
63+
4464
## 近期更新
4565

4666
**默认分支已经从 `main` 切换到 `1.x`。我们鼓励用户迁移到最新版本,请参考 [迁移指南](https://mmocr.readthedocs.io/zh_CN/dev-1.x/migration/overview.html) 以了解更多细节。**
+3-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
ctw1500_textdet_data_root = 'data/det/ctw1500'
1+
ctw1500_textdet_data_root = 'data/ctw1500'
22

33
ctw1500_textdet_train = dict(
44
type='OCRDataset',
55
data_root=ctw1500_textdet_data_root,
6-
ann_file='instances_training.json',
7-
data_prefix=dict(img_path='imgs/'),
6+
ann_file='textdet_train.json',
87
filter_cfg=dict(filter_empty_gt=True, min_size=32),
98
pipeline=None)
109

1110
ctw1500_textdet_test = dict(
1211
type='OCRDataset',
1312
data_root=ctw1500_textdet_data_root,
14-
ann_file='instances_test.json',
15-
data_prefix=dict(img_path='imgs/'),
13+
ann_file='textdet_test.json',
1614
test_mode=True,
1715
pipeline=None)

configs/textrecog/_base_/datasets/mjsynth.py

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
data_root=mjsynth_textrecog_data_root,
66
ann_file='textrecog_train.json',
77
pipeline=None)
8+
9+
mjsynth_sub_textrecog_train = dict(
10+
type='OCRDataset',
11+
data_root=mjsynth_textrecog_data_root,
12+
ann_file='subset_textrecog_train.json',
13+
pipeline=None)

configs/textrecog/abinet/_base_abinet-vision.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
type='mmdet.Albu',
8181
transforms=[
8282
dict(type='GaussNoise', var_limit=(20, 20), p=0.5),
83-
dict(type='MotionBlur', blur_limit=6, p=0.5),
83+
dict(type='MotionBlur', blur_limit=7, p=0.5),
8484
]),
8585
]),
8686
dict(

dataset_zoo/mjsynth/textrecog.py

+16-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,19 @@
2323
'annotations/annotation.txt'
2424
]
2525
]),
26+
dict(
27+
url='https://download.openmmlab.com/mmocr/data/1.x/recog/'
28+
'Syn90k/subset_textrecog_train.json',
29+
save_name='subset_textrecog_train.json',
30+
md5='ba958d87bb170980f39e194180c15b9e',
31+
split=['train'],
32+
content=['annotation'])
2633
]),
2734
gatherer=dict(type='MonoGatherer', ann_name='annotation.txt'),
2835
parser=dict(
29-
type='ICDARTxtTextRecogAnnParser',
36+
type='MJSynthAnnParser',
3037
separator=' ',
31-
format='img text',
38+
format='img num',
3239
remove_strs=None),
3340
packer=dict(type='TextRecogPacker'),
3441
dumper=dict(type='JsonDumper'),
@@ -37,4 +44,10 @@
3744
delete = ['mjsynth', 'annotations']
3845

3946
config_generator = dict(
40-
type='TextRecogConfigGenerator', data_root=data_root, test_anns=None)
47+
type='TextRecogConfigGenerator',
48+
data_root=data_root,
49+
train_anns=[
50+
dict(ann_file='textrecog_train.json', dataset_postfix=''),
51+
dict(ann_file='subset_textrecog_train.json', dataset_postfix='sub'),
52+
],
53+
test_anns=None)

dataset_zoo/synthtext/textrecog.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@
2727
dict(
2828
ann_file='alphanumeric_textrecog_train.json',
2929
dataset_postfix='an'),
30-
])
30+
],
31+
test_anns=None)

0 commit comments

Comments
 (0)