config.txt 594 字节
Newer Older
littletomatodonkey's avatar
littletomatodonkey 已提交
1
# model load config
L
LDOUBLEV 已提交
2
use_gpu 0
littletomatodonkey's avatar
littletomatodonkey 已提交
3 4
gpu_id  0
gpu_mem  4000
littletomatodonkey's avatar
littletomatodonkey 已提交
5
cpu_math_library_num_threads  10
littletomatodonkey's avatar
littletomatodonkey 已提交
6
use_mkldnn 0
littletomatodonkey's avatar
littletomatodonkey 已提交
7 8 9 10 11

# det config
max_side_len  960
det_db_thresh  0.3
det_db_box_thresh  0.5
L
LDOUBLEV 已提交
12
det_db_unclip_ratio  1.6
13
use_polygon_score 1
W
WenmuZhou 已提交
14
det_model_dir  ./inference/ch_ppocr_mobile_v2.0_det_infer/
L
LDOUBLEV 已提交
15 16 17

# cls config
use_angle_cls 0
L
LDOUBLEV 已提交
18
cls_model_dir  ./inference/ch_ppocr_mobile_v2.0_cls_infer/
L
LDOUBLEV 已提交
19
cls_thresh  0.9
littletomatodonkey's avatar
littletomatodonkey 已提交
20 21

# rec config
L
LDOUBLEV 已提交
22
rec_model_dir  ./inference/ch_ppocr_mobile_v2.0_rec_infer/
littletomatodonkey's avatar
littletomatodonkey 已提交
23
char_list_file ../../ppocr/utils/ppocr_keys_v1.txt
littletomatodonkey's avatar
littletomatodonkey 已提交
24 25

# show the detection results
26
visualize 1
littletomatodonkey's avatar
littletomatodonkey 已提交
27

L
LDOUBLEV 已提交
28 29 30 31
# use_tensorrt
use_tensorrt 0
use_fp16   0