From eb15a984574b9a924f0ad3e26381c1062d369954 Mon Sep 17 00:00:00 2001 From: "shaohua.zhang" Date: Thu, 29 Oct 2020 00:02:25 +0800 Subject: [PATCH] add the character_dict_path to the yml (#1045) add reduction_factor into the yml files --- configs/rec/rec_mv3_none_bilstm_ctc.yml | 1 + configs/rec/rec_mv3_none_none_ctc.yml | 1 + configs/rec/rec_mv3_tps_bilstm_attn.yml | 1 + configs/rec/rec_mv3_tps_bilstm_ctc.yml | 1 + configs/rec/rec_r34_vd_none_bilstm_ctc.yml | 1 + configs/rec/rec_r34_vd_none_none_ctc.yml | 1 + configs/rec/rec_r34_vd_tps_bilstm_attn.yml | 1 + configs/rec/rec_r34_vd_tps_bilstm_ctc.yml | 1 + configs/rec/rec_r50fpn_vd_none_srn.yml | 1 + 9 files changed, 9 insertions(+) diff --git a/configs/rec/rec_mv3_none_bilstm_ctc.yml b/configs/rec/rec_mv3_none_bilstm_ctc.yml index d2e096fb..55feaaf8 100755 --- a/configs/rec/rec_mv3_none_bilstm_ctc.yml +++ b/configs/rec/rec_mv3_none_bilstm_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc reader_yml: ./configs/rec/rec_benchmark_reader.yml pretrain_weights: diff --git a/configs/rec/rec_mv3_none_none_ctc.yml b/configs/rec/rec_mv3_none_none_ctc.yml index ceec09ce..0cf37783 100755 --- a/configs/rec/rec_mv3_none_none_ctc.yml +++ b/configs/rec/rec_mv3_none_none_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc reader_yml: ./configs/rec/rec_benchmark_reader.yml pretrain_weights: diff --git a/configs/rec/rec_mv3_tps_bilstm_attn.yml b/configs/rec/rec_mv3_tps_bilstm_attn.yml index 7fc4f679..d02edaba 100755 --- a/configs/rec/rec_mv3_tps_bilstm_attn.yml +++ b/configs/rec/rec_mv3_tps_bilstm_attn.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: attention tps: true reader_yml: ./configs/rec/rec_benchmark_reader.yml diff --git a/configs/rec/rec_mv3_tps_bilstm_ctc.yml b/configs/rec/rec_mv3_tps_bilstm_ctc.yml index 4b9660bc..509d616b 100755 --- a/configs/rec/rec_mv3_tps_bilstm_ctc.yml +++ b/configs/rec/rec_mv3_tps_bilstm_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc tps: true reader_yml: ./configs/rec/rec_benchmark_reader.yml diff --git a/configs/rec/rec_r34_vd_none_bilstm_ctc.yml b/configs/rec/rec_r34_vd_none_bilstm_ctc.yml index b71e8fea..7332f0f8 100755 --- a/configs/rec/rec_r34_vd_none_bilstm_ctc.yml +++ b/configs/rec/rec_r34_vd_none_bilstm_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc reader_yml: ./configs/rec/rec_benchmark_reader.yml pretrain_weights: diff --git a/configs/rec/rec_r34_vd_none_none_ctc.yml b/configs/rec/rec_r34_vd_none_none_ctc.yml index d9c9458d..b42b5535 100755 --- a/configs/rec/rec_r34_vd_none_none_ctc.yml +++ b/configs/rec/rec_r34_vd_none_none_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc reader_yml: ./configs/rec/rec_benchmark_reader.yml pretrain_weights: diff --git a/configs/rec/rec_r34_vd_tps_bilstm_attn.yml b/configs/rec/rec_r34_vd_tps_bilstm_attn.yml index dfcd97fa..73ed6848 100755 --- a/configs/rec/rec_r34_vd_tps_bilstm_attn.yml +++ b/configs/rec/rec_r34_vd_tps_bilstm_attn.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: attention tps: true reader_yml: ./configs/rec/rec_benchmark_reader.yml diff --git a/configs/rec/rec_r34_vd_tps_bilstm_ctc.yml b/configs/rec/rec_r34_vd_tps_bilstm_ctc.yml index 574a088c..9a621a14 100755 --- a/configs/rec/rec_r34_vd_tps_bilstm_ctc.yml +++ b/configs/rec/rec_r34_vd_tps_bilstm_ctc.yml @@ -12,6 +12,7 @@ Global: image_shape: [3, 32, 100] max_text_length: 25 character_type: en + character_dict_path: loss_type: ctc tps: true reader_yml: ./configs/rec/rec_benchmark_reader.yml diff --git a/configs/rec/rec_r50fpn_vd_none_srn.yml b/configs/rec/rec_r50fpn_vd_none_srn.yml index 30709e47..e7040d9a 100755 --- a/configs/rec/rec_r50fpn_vd_none_srn.yml +++ b/configs/rec/rec_r50fpn_vd_none_srn.yml @@ -12,6 +12,7 @@ Global: image_shape: [1, 64, 256] max_text_length: 25 character_type: en + character_dict_path: loss_type: srn num_heads: 8 average_window: 0.15 -- GitLab