-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
64 lines (54 loc) · 1.96 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
*************************************************************************
Enviroment
PaddlePaddle 1.8+
python3.7
glibc 2.23
CUDA 10.0
cuDNN 7.6+ (GPU)
*************************************************************************
Run Inference
conda activate paddle
python tools/infer/predict_system.py --image_dir="test_images/" \
--det_model_dir="./inference/ch_ppocr_mobile_v1.1_det_infer/" \
--rec_model_dir="./inference/ch_ppocr_mobile_v1.1_rec_infer/" \
--cls_model_dir="./inference/ch_ppocr_mobile_v1.1_cls_infer/" \
--use_angle_cls=True --use_space_char=True
The results are saved in "./inference_results" by default.
*************************************************************************
Optional Aruguments
--use_gpu USE_GPU
--ir_optim IR_OPTIM
--use_tensorrt USE_TENSORRT
--gpu_mem GPU_MEM
--image_dir IMAGE_DIR
--det_algorithm DET_ALGORITHM
--det_model_dir DET_MODEL_DIR
--det_max_side_len DET_MAX_SIDE_LEN
--det_db_thresh DET_DB_THRESH
--det_db_box_thresh DET_DB_BOX_THRESH
--det_db_unclip_ratio DET_DB_UNCLIP_RATIO
--det_east_score_thresh DET_EAST_SCORE_THRESH
--det_east_cover_thresh DET_EAST_COVER_THRESH
--det_east_nms_thresh DET_EAST_NMS_THRESH
--det_sast_score_thresh DET_SAST_SCORE_THRESH
--det_sast_nms_thresh DET_SAST_NMS_THRESH
--det_sast_polygon DET_SAST_POLYGON
--rec_algorithm REC_ALGORITHM
--rec_model_dir REC_MODEL_DIR
--rec_image_shape REC_IMAGE_SHAPE
--rec_char_type REC_CHAR_TYPE
--rec_batch_num REC_BATCH_NUM
--max_text_length MAX_TEXT_LENGTH
--rec_char_dict_path REC_CHAR_DICT_PATH
--use_space_char USE_SPACE_CHAR
--vis_font_path VIS_FONT_PATH
--use_angle_cls USE_ANGLE_CLS
--cls_model_dir CLS_MODEL_DIR
--cls_image_shape CLS_IMAGE_SHAPE
--label_list LABEL_LIST
--cls_batch_num CLS_BATCH_NUM
--cls_thresh CLS_THRESH
--enable_mkldnn ENABLE_MKLDNN
--use_zero_copy_run USE_ZERO_COPY_RUN
--use_pdserving USE_PDSERVING
*************************************************************************