Reza2kn commited on
Commit
10648a1
·
verified ·
1 Parent(s): e1389e1

Back up Bina 0.2 stream stage 006: config.yml

Browse files
Files changed (1) hide show
  1. training-stream/stage-006/config.yml +160 -0
training-stream/stage-006/config.yml ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv6_medium_rec
3
+ debug: false
4
+ use_gpu: true
5
+ epoch_num: 1
6
+ log_smooth_window: 20
7
+ print_batch_step: 20
8
+ save_model_dir: /workspace/bina02-ppocr/training/stage-006
9
+ save_epoch_step: 1
10
+ eval_batch_step:
11
+ - 0
12
+ - 100
13
+ cal_metric_during_train: false
14
+ pretrained_model: /workspace/bina02-ppocr/training/stage-005/best_accuracy
15
+ checkpoints: null
16
+ save_inference_dir: null
17
+ use_visualdl: false
18
+ infer_img: doc/imgs_words/ch/word_1.jpg
19
+ character_dict_path: /workspace/bina02-ppocr/stream/datasets/chunk-006/persian_arabic_bina02_dict.txt
20
+ max_text_length: 128
21
+ infer_mode: false
22
+ use_space_char: true
23
+ distributed: true
24
+ save_res_path: /workspace/bina02-ppocr/training/stage-006/predicts.txt
25
+ d2s_train_image_shape:
26
+ - 3
27
+ - 48
28
+ - 768
29
+ freeze_batch_norm: true
30
+ trainable_parameter_prefixes:
31
+ - head.ctc_head.fc.
32
+ Optimizer:
33
+ name: Adam
34
+ beta1: 0.9
35
+ beta2: 0.999
36
+ lr:
37
+ name: Cosine
38
+ learning_rate: 1.0e-05
39
+ warmup_epoch: 0
40
+ regularizer:
41
+ name: L2
42
+ factor: 0.0
43
+ Architecture:
44
+ model_type: rec
45
+ algorithm: SVTR_LCNet
46
+ Transform: null
47
+ Backbone:
48
+ name: PPLCNetV4
49
+ model_size: medium
50
+ train_pool_width: 96
51
+ force_pool_width: true
52
+ Head:
53
+ name: MultiHead
54
+ head_list:
55
+ - CTCHead:
56
+ Neck:
57
+ name: lightsvtr
58
+ dims: 192
59
+ depth: 2
60
+ mlp_ratio: 4.0
61
+ local_kernel: 7
62
+ use_guide: false
63
+ Head:
64
+ fc_decay: 1.0e-05
65
+ - NRTRHead:
66
+ nrtr_dim: 512
67
+ max_text_length: 128
68
+ Loss:
69
+ name: MultiLoss
70
+ weight_1: 1.0
71
+ weight_2: 0.0
72
+ loss_config_list:
73
+ - CTCLoss: null
74
+ - NRTRLoss: null
75
+ PostProcess:
76
+ name: CTCLabelDecode
77
+ Metric:
78
+ name: RecMetric
79
+ main_indicator: norm_edit_dis
80
+ ignore_space: false
81
+ Train:
82
+ dataset:
83
+ name: MultiScaleDataSet
84
+ ds_width: false
85
+ data_dir: /
86
+ ext_op_transform_idx: 1
87
+ label_file_list:
88
+ - /workspace/bina02-ppocr/stream/datasets/chunk-006/train_ctc.txt
89
+ ratio_list:
90
+ - 1.0
91
+ transforms:
92
+ - DecodeImage:
93
+ img_mode: BGR
94
+ channel_first: false
95
+ - RecConAug:
96
+ prob: 0.0
97
+ ext_data_num: 0
98
+ image_shape:
99
+ - 48
100
+ - 768
101
+ - 3
102
+ max_text_length: 128
103
+ - RecAug: null
104
+ - MultiLabelEncode:
105
+ gtc_encode: NRTRLabelEncode
106
+ - KeepKeys:
107
+ keep_keys:
108
+ - image
109
+ - label_ctc
110
+ - label_gtc
111
+ - length
112
+ - valid_ratio
113
+ padding: false
114
+ sampler:
115
+ name: MultiScaleSampler
116
+ scales:
117
+ - - 768
118
+ - 48
119
+ first_bs: 32
120
+ fix_bs: true
121
+ divided_factor:
122
+ - 8
123
+ - 16
124
+ is_training: true
125
+ loader:
126
+ shuffle: true
127
+ batch_size_per_card: 32
128
+ drop_last: false
129
+ num_workers: 4
130
+ Eval:
131
+ dataset:
132
+ name: SimpleDataSet
133
+ data_dir: /
134
+ label_file_list:
135
+ - /workspace/bina02-ppocr/stream/datasets/chunk-006/eval_ctc.txt
136
+ transforms:
137
+ - DecodeImage:
138
+ img_mode: BGR
139
+ channel_first: false
140
+ - MultiLabelEncode:
141
+ gtc_encode: NRTRLabelEncode
142
+ - RecResizeImg:
143
+ image_shape:
144
+ - 3
145
+ - 48
146
+ - 768
147
+ padding: false
148
+ - KeepKeys:
149
+ keep_keys:
150
+ - image
151
+ - label_ctc
152
+ - label_gtc
153
+ - length
154
+ - valid_ratio
155
+ loader:
156
+ shuffle: false
157
+ drop_last: false
158
+ batch_size_per_card: 32
159
+ num_workers: 4
160
+ profiler_options: null