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
Global:
|
| 2 |
+
model_name: PP-OCRv6_medium_rec
|
| 3 |
+
debug: false
|
| 4 |
+
use_gpu: true
|
| 5 |
+
epoch_num: 50
|
| 6 |
+
log_smooth_window: 20
|
| 7 |
+
print_batch_step: 10
|
| 8 |
+
save_model_dir: /content/bina02-ppocr/output/rec-persian-head-stage
|
| 9 |
+
save_epoch_step: 1
|
| 10 |
+
eval_batch_step:
|
| 11 |
+
- 0
|
| 12 |
+
- 500
|
| 13 |
+
cal_metric_during_train: true
|
| 14 |
+
pretrained_model: /content/bina02-ppocr/PP-OCRv6_medium_rec_pretrained.pdparams
|
| 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: /content/bina02-ppocr/pilot/persian_dict.txt
|
| 20 |
+
max_text_length: 25
|
| 21 |
+
infer_mode: false
|
| 22 |
+
use_space_char: true
|
| 23 |
+
distributed: false
|
| 24 |
+
save_res_path: ./output/rec/predicts_ppocrv6_medium.txt
|
| 25 |
+
d2s_train_image_shape:
|
| 26 |
+
- 3
|
| 27 |
+
- 48
|
| 28 |
+
- 640
|
| 29 |
+
Optimizer:
|
| 30 |
+
name: Adam
|
| 31 |
+
beta1: 0.9
|
| 32 |
+
beta2: 0.999
|
| 33 |
+
lr:
|
| 34 |
+
name: Cosine
|
| 35 |
+
learning_rate: 0.0005
|
| 36 |
+
warmup_epoch: 1
|
| 37 |
+
regularizer:
|
| 38 |
+
name: L2
|
| 39 |
+
factor: 3.0e-05
|
| 40 |
+
Architecture:
|
| 41 |
+
model_type: rec
|
| 42 |
+
algorithm: SVTR_LCNet
|
| 43 |
+
Transform: null
|
| 44 |
+
Backbone:
|
| 45 |
+
name: PPLCNetV4
|
| 46 |
+
model_size: medium
|
| 47 |
+
Head:
|
| 48 |
+
name: MultiHead
|
| 49 |
+
head_list:
|
| 50 |
+
- CTCHead:
|
| 51 |
+
Neck:
|
| 52 |
+
name: lightsvtr
|
| 53 |
+
dims: 192
|
| 54 |
+
depth: 2
|
| 55 |
+
mlp_ratio: 4.0
|
| 56 |
+
local_kernel: 7
|
| 57 |
+
use_guide: false
|
| 58 |
+
Head:
|
| 59 |
+
fc_decay: 1.0e-05
|
| 60 |
+
- NRTRHead:
|
| 61 |
+
nrtr_dim: 512
|
| 62 |
+
max_text_length: 25
|
| 63 |
+
Loss:
|
| 64 |
+
name: MultiLoss
|
| 65 |
+
loss_config_list:
|
| 66 |
+
- CTCLoss: null
|
| 67 |
+
- NRTRLoss: null
|
| 68 |
+
PostProcess:
|
| 69 |
+
name: CTCLabelDecode
|
| 70 |
+
Metric:
|
| 71 |
+
name: RecMetric
|
| 72 |
+
main_indicator: norm_edit_dis
|
| 73 |
+
Train:
|
| 74 |
+
dataset:
|
| 75 |
+
name: MultiScaleDataSet
|
| 76 |
+
ds_width: false
|
| 77 |
+
data_dir: /content/bina02-ppocr
|
| 78 |
+
ext_op_transform_idx: 1
|
| 79 |
+
label_file_list:
|
| 80 |
+
- /content/bina02-ppocr/pilot/train_segments.txt
|
| 81 |
+
ratio_list:
|
| 82 |
+
- 1.0
|
| 83 |
+
transforms:
|
| 84 |
+
- DecodeImage:
|
| 85 |
+
img_mode: BGR
|
| 86 |
+
channel_first: false
|
| 87 |
+
- RecConAug:
|
| 88 |
+
prob: 0.0
|
| 89 |
+
ext_data_num: 2
|
| 90 |
+
image_shape:
|
| 91 |
+
- 48
|
| 92 |
+
- 640
|
| 93 |
+
- 3
|
| 94 |
+
max_text_length: 25
|
| 95 |
+
- RecAug: null
|
| 96 |
+
- MultiLabelEncode:
|
| 97 |
+
gtc_encode: NRTRLabelEncode
|
| 98 |
+
- KeepKeys:
|
| 99 |
+
keep_keys:
|
| 100 |
+
- image
|
| 101 |
+
- label_ctc
|
| 102 |
+
- label_gtc
|
| 103 |
+
- length
|
| 104 |
+
- valid_ratio
|
| 105 |
+
sampler:
|
| 106 |
+
name: MultiScaleSampler
|
| 107 |
+
scales:
|
| 108 |
+
- - 640
|
| 109 |
+
- 48
|
| 110 |
+
first_bs: 64
|
| 111 |
+
fix_bs: false
|
| 112 |
+
divided_factor:
|
| 113 |
+
- 8
|
| 114 |
+
- 16
|
| 115 |
+
is_training: true
|
| 116 |
+
loader:
|
| 117 |
+
shuffle: true
|
| 118 |
+
batch_size_per_card: 64
|
| 119 |
+
drop_last: true
|
| 120 |
+
num_workers: 0
|
| 121 |
+
Eval:
|
| 122 |
+
dataset:
|
| 123 |
+
name: SimpleDataSet
|
| 124 |
+
data_dir: /content/bina02-ppocr
|
| 125 |
+
label_file_list:
|
| 126 |
+
- /content/bina02-ppocr/pilot/val_segments.txt
|
| 127 |
+
transforms:
|
| 128 |
+
- DecodeImage:
|
| 129 |
+
img_mode: BGR
|
| 130 |
+
channel_first: false
|
| 131 |
+
- MultiLabelEncode:
|
| 132 |
+
gtc_encode: NRTRLabelEncode
|
| 133 |
+
- RecResizeImg:
|
| 134 |
+
image_shape:
|
| 135 |
+
- 3
|
| 136 |
+
- 48
|
| 137 |
+
- 640
|
| 138 |
+
- KeepKeys:
|
| 139 |
+
keep_keys:
|
| 140 |
+
- image
|
| 141 |
+
- label_ctc
|
| 142 |
+
- label_gtc
|
| 143 |
+
- length
|
| 144 |
+
- valid_ratio
|
| 145 |
+
loader:
|
| 146 |
+
shuffle: false
|
| 147 |
+
drop_last: false
|
| 148 |
+
batch_size_per_card: 64
|
| 149 |
+
num_workers: 0
|