character_dict_path:ppocr/utils/ic15_dict.txt# the same as Global:character_dict_path
Loss:
Loss:
name:PGLoss
name:PGLoss
...
@@ -45,16 +47,18 @@ Optimizer:
...
@@ -45,16 +47,18 @@ Optimizer:
beta1:0.9
beta1:0.9
beta2:0.999
beta2:0.999
lr:
lr:
name:Cosine
learning_rate:0.001
learning_rate:0.001
warmup_epoch:50
regularizer:
regularizer:
name:'L2'
name:'L2'
factor:0
factor:0.0001
PostProcess:
PostProcess:
name:PGPostProcess
name:PGPostProcess
score_thresh:0.5
score_thresh:0.5
mode:fast# fast or slow two ways
mode:fast# fast or slow two ways
point_gather_mode:align# same as PGProcessTrain: point_gather_mode
Metric:
Metric:
name:E2EMetric
name:E2EMetric
...
@@ -76,9 +80,12 @@ Train:
...
@@ -76,9 +80,12 @@ Train:
-E2ELabelEncodeTrain:
-E2ELabelEncodeTrain:
-PGProcessTrain:
-PGProcessTrain:
batch_size:14# same as loader: batch_size_per_card
batch_size:14# same as loader: batch_size_per_card
use_resize:True
use_random_crop:False
min_crop_size:24
min_crop_size:24
min_text_size:4
min_text_size:4
max_text_size:512
max_text_size:512
point_gather_mode:align# two mode: align and none, align mode is better than none mode
-KeepKeys:
-KeepKeys:
keep_keys:['images','tcl_maps','tcl_label_maps','border_maps','direction_maps','training_masks','label_list','pos_list','pos_mask']# dataloader will return list in this order
keep_keys:['images','tcl_maps','tcl_label_maps','border_maps','direction_maps','training_masks','label_list','pos_list','pos_mask']# dataloader will return list in this order