ocr_rec_params.txt 1.0 KB
Newer Older
T
tink2123 已提交
1
model_name:ocr_rec
T
tink2123 已提交
2
python:python
T
tink2123 已提交
3
gpu_list:0|0,1
T
tink2123 已提交
4
Global.auto_cast:null
T
tink2123 已提交
5 6 7
Global.epoch_num:10
Global.save_model_dir:./output/
Train.loader.batch_size_per_card:
T
tink2123 已提交
8 9
Global.use_gpu:
Global.pretrained_model:null
T
tink2123 已提交
10 11 12 13 14 15 16 17 18

trainer:norm|pact
norm_train:tools/train.py -c configs/rec/rec_mv3_none_bilstm_ctc.yml
quant_train:deploy/slim/quantization/quant.py -c configs/rec/rec_mv3_none_bilstm_ctc.yml
fpgm_train:null
distill_train:null

eval:tools/eval.py -c configs/rec/rec_mv3_none_bilstm_ctc.yml -o

T
tink2123 已提交
19 20
Global.save_inference_dir:./output/
Global.pretrained_model:
T
tink2123 已提交
21 22 23 24 25 26 27 28 29
norm_export:tools/export_model.py -c configs/rec/rec_mv3_none_bilstm_ctc.yml -o
quant_export:deploy/slim/quantization/export_model.py -c configs/rec/rec_mv3_none_bilstm_ctc.yml -o
fpgm_export:null
distill_export:null

inference:tools/infer/predict_rec.py
--use_gpu:True|False
--enable_mkldnn:True|False
--cpu_threads:1|6
T
tink2123 已提交
30
--rec_batch_num:1
T
tink2123 已提交
31 32
--use_tensorrt:True|False
--precision:fp32|fp16|int8
T
tink2123 已提交
33 34 35
--rec_model_dir:./inference/ch_ppocr_mobile_v2.0_rec_infer/
--image_dir:./inference/rec_inference
--save_log_path:./test/output/