From f3171212b2acd6c70b53f05e4674d175736855d6 Mon Sep 17 00:00:00 2001 From: frankstorming <1728298218@qq.com> Date: Wed, 19 Apr 2023 08:44:35 +0800 Subject: [PATCH 1/2] 'message' --- dicts/chinese_english_digits.txt | 2 +- dicts/english_digits_symbols.txt | 2 +- dicts/english_digits_symbols_space.txt | 2 +- dicts/lower_english_digits.txt | 2 +- dicts/lower_english_digits_space.txt | 2 +- dicts/sdmgr_dict.txt | 2 +- projects/ABCNet/dicts/abcnet.txt | 2 +- projects/SPTS/dicts/spts.txt | 2 +- tools/dataset_converters/textrecog/rctw_converter.py | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dicts/chinese_english_digits.txt b/dicts/chinese_english_digits.txt index 2fb5f7326..6844b22c2 100644 --- a/dicts/chinese_english_digits.txt +++ b/dicts/chinese_english_digits.txt @@ -11374,4 +11374,4 @@ z ~ ¥ 𡒄 -𨱏 \ No newline at end of file +𨱏 diff --git a/dicts/english_digits_symbols.txt b/dicts/english_digits_symbols.txt index a945ae9c5..46b879507 100644 --- a/dicts/english_digits_symbols.txt +++ b/dicts/english_digits_symbols.txt @@ -87,4 +87,4 @@ $ ] _ ` -~ \ No newline at end of file +~ diff --git a/dicts/english_digits_symbols_space.txt b/dicts/english_digits_symbols_space.txt index 5bd66a185..28d90f01f 100644 --- a/dicts/english_digits_symbols_space.txt +++ b/dicts/english_digits_symbols_space.txt @@ -88,4 +88,4 @@ $ _ ` ~ - \ No newline at end of file + diff --git a/dicts/lower_english_digits.txt b/dicts/lower_english_digits.txt index 474060366..710436890 100644 --- a/dicts/lower_english_digits.txt +++ b/dicts/lower_english_digits.txt @@ -33,4 +33,4 @@ v w x y -z \ No newline at end of file +z diff --git a/dicts/lower_english_digits_space.txt b/dicts/lower_english_digits_space.txt index a80a4a20b..c4a7064d5 100644 --- a/dicts/lower_english_digits_space.txt +++ b/dicts/lower_english_digits_space.txt @@ -34,4 +34,4 @@ w x y z - \ No newline at end of file + diff --git a/dicts/sdmgr_dict.txt b/dicts/sdmgr_dict.txt index b68274119..ee07c045d 100644 --- a/dicts/sdmgr_dict.txt +++ b/dicts/sdmgr_dict.txt @@ -88,4 +88,4 @@ V W X Y -Z \ No newline at end of file +Z diff --git a/projects/ABCNet/dicts/abcnet.txt b/projects/ABCNet/dicts/abcnet.txt index 173d6c4a7..3bc7fbc7b 100644 --- a/projects/ABCNet/dicts/abcnet.txt +++ b/projects/ABCNet/dicts/abcnet.txt @@ -92,4 +92,4 @@ z { | } -~ \ No newline at end of file +~ diff --git a/projects/SPTS/dicts/spts.txt b/projects/SPTS/dicts/spts.txt index 173d6c4a7..3bc7fbc7b 100644 --- a/projects/SPTS/dicts/spts.txt +++ b/projects/SPTS/dicts/spts.txt @@ -92,4 +92,4 @@ z { | } -~ \ No newline at end of file +~ diff --git a/tools/dataset_converters/textrecog/rctw_converter.py b/tools/dataset_converters/textrecog/rctw_converter.py index bfb70bbea..e3bfd2baa 100644 --- a/tools/dataset_converters/textrecog/rctw_converter.py +++ b/tools/dataset_converters/textrecog/rctw_converter.py @@ -154,9 +154,9 @@ def generate_ann(root_path, split, image_infos, preserve_vertical): dst_image_root = osp.join(root_path, 'crops', split) ignore_image_root = osp.join(root_path, 'ignores', split) if split == 'training': - dst_label_file = osp.join(root_path, f'train_label.{format}') + dst_label_file = osp.join(root_path, 'train_label.json') elif split == 'val': - dst_label_file = osp.join(root_path, f'val_label.{format}') + dst_label_file = osp.join(root_path, 'val_label.json') mmengine.mkdir_or_exist(dst_image_root) mmengine.mkdir_or_exist(ignore_image_root) From d43c62bbc949c1aefc7e30ec698b4be4310ba9c8 Mon Sep 17 00:00:00 2001 From: gaotongxiao Date: Tue, 25 Apr 2023 09:49:49 +0800 Subject: [PATCH 2/2] revert dict files --- dicts/chinese_english_digits.txt | 2 +- dicts/english_digits_symbols.txt | 2 +- dicts/english_digits_symbols_space.txt | 2 +- dicts/lower_english_digits.txt | 2 +- dicts/lower_english_digits_space.txt | 2 +- dicts/sdmgr_dict.txt | 2 +- projects/ABCNet/dicts/abcnet.txt | 2 +- projects/SPTS/dicts/spts.txt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dicts/chinese_english_digits.txt b/dicts/chinese_english_digits.txt index 6844b22c2..2fb5f7326 100644 --- a/dicts/chinese_english_digits.txt +++ b/dicts/chinese_english_digits.txt @@ -11374,4 +11374,4 @@ z ~ ¥ 𡒄 -𨱏 +𨱏 \ No newline at end of file diff --git a/dicts/english_digits_symbols.txt b/dicts/english_digits_symbols.txt index 46b879507..a945ae9c5 100644 --- a/dicts/english_digits_symbols.txt +++ b/dicts/english_digits_symbols.txt @@ -87,4 +87,4 @@ $ ] _ ` -~ +~ \ No newline at end of file diff --git a/dicts/english_digits_symbols_space.txt b/dicts/english_digits_symbols_space.txt index 28d90f01f..5bd66a185 100644 --- a/dicts/english_digits_symbols_space.txt +++ b/dicts/english_digits_symbols_space.txt @@ -88,4 +88,4 @@ $ _ ` ~ - + \ No newline at end of file diff --git a/dicts/lower_english_digits.txt b/dicts/lower_english_digits.txt index 710436890..474060366 100644 --- a/dicts/lower_english_digits.txt +++ b/dicts/lower_english_digits.txt @@ -33,4 +33,4 @@ v w x y -z +z \ No newline at end of file diff --git a/dicts/lower_english_digits_space.txt b/dicts/lower_english_digits_space.txt index c4a7064d5..a80a4a20b 100644 --- a/dicts/lower_english_digits_space.txt +++ b/dicts/lower_english_digits_space.txt @@ -34,4 +34,4 @@ w x y z - + \ No newline at end of file diff --git a/dicts/sdmgr_dict.txt b/dicts/sdmgr_dict.txt index ee07c045d..b68274119 100644 --- a/dicts/sdmgr_dict.txt +++ b/dicts/sdmgr_dict.txt @@ -88,4 +88,4 @@ V W X Y -Z +Z \ No newline at end of file diff --git a/projects/ABCNet/dicts/abcnet.txt b/projects/ABCNet/dicts/abcnet.txt index 3bc7fbc7b..173d6c4a7 100644 --- a/projects/ABCNet/dicts/abcnet.txt +++ b/projects/ABCNet/dicts/abcnet.txt @@ -92,4 +92,4 @@ z { | } -~ +~ \ No newline at end of file diff --git a/projects/SPTS/dicts/spts.txt b/projects/SPTS/dicts/spts.txt index 3bc7fbc7b..173d6c4a7 100644 --- a/projects/SPTS/dicts/spts.txt +++ b/projects/SPTS/dicts/spts.txt @@ -92,4 +92,4 @@ z { | } -~ +~ \ No newline at end of file