提交 69f9bdd8 编写于 作者: A andyjpaddle

add_rec_sar,test=dygraph

上级 8a95b335
...@@ -3,16 +3,16 @@ Global: ...@@ -3,16 +3,16 @@ Global:
epoch_num: 5 epoch_num: 5
log_smooth_window: 20 log_smooth_window: 20
print_batch_step: 20 print_batch_step: 20
save_model_dir: /paddle/backup/sar_rec/sar_train_v3 save_model_dir: ./sar_rec
save_epoch_step: 1 save_epoch_step: 1
# evaluation is run every 2000 iterations # evaluation is run every 2000 iterations
eval_batch_step: [0, 2000] eval_batch_step: [0, 2000]
cal_metric_during_train: True cal_metric_during_train: True
pretrained_model: #/paddle/backup/sar_rec/sar_train_v2/best_accuracy pretrained_model:
checkpoints: checkpoints:
save_inference_dir: save_inference_dir:
use_visualdl: False use_visualdl: False
infer_img: demo_text_recog.jpg infer_img:
# for data or label process # for data or label process
character_dict_path: ppocr/utils/dict90.txt character_dict_path: ppocr/utils/dict90.txt
character_type: ch character_type: ch
...@@ -54,11 +54,11 @@ Metric: ...@@ -54,11 +54,11 @@ Metric:
Train: Train:
dataset: dataset:
name: LMDBDataSet #SimpleDataSet name: SimpleDataSet
# delimiter: ' ' delimiter: ' '
# label_file_list: ['/paddle/data/concat_data/icdar_2013_train20.txt', '/paddle/data/concat_data/icdar_2015_train20.txt', '/paddle/data/concat_data/coco_text_train20.txt', '/paddle/data/concat_data/IIIt5k_train20.txt', '/paddle/data/concat_data/SynthAdd_train.txt', '/paddle/data/concat_data/SynthText_train.txt', '/paddle/data/concat_data/Syn90k_train.txt'] label_file_list: ['/paddle/data/concat_data/icdar_2013_train20.txt', '/paddle/data/concat_data/icdar_2015_train20.txt', '/paddle/data/concat_data/coco_text_train20.txt', '/paddle/data/concat_data/IIIt5k_train20.txt', '/paddle/data/concat_data/SynthAdd_train.txt', '/paddle/data/concat_data/SynthText_train.txt', '/paddle/data/concat_data/Syn90k_train.txt']
data_dir: /paddle/data/ocr_data/training/ #/paddle/data/concat_data/ data_dir: /paddle/data/concat_data/
# ratio_list: 1.0 ratio_list: 1.0
transforms: transforms:
- DecodeImage: # load image - DecodeImage: # load image
img_mode: BGR img_mode: BGR
...@@ -96,4 +96,4 @@ Eval: ...@@ -96,4 +96,4 @@ Eval:
batch_size_per_card: 64 batch_size_per_card: 64
num_workers: 4 num_workers: 4
use_shared_memory: False use_shared_memory: False
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册