-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_v5.yaml
More file actions
43 lines (39 loc) · 1.03 KB
/
config_v5.yaml
File metadata and controls
43 lines (39 loc) · 1.03 KB
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
# Optimized PP-OCRv5 Configuration for CPU Performance
Global:
use_det: true
use_cls: false # Disable classifier for better speed
use_rec: true
print_verbose: false
Det:
det_algorithm: DBNET
det_model_type: ch_PP-OCRv5_mobile_det.onnx
det_limit_side_len: 960
det_limit_type: max
det_db_thresh: 0.3
det_db_box_thresh: 0.6
det_db_unclip_ratio: 1.5
det_use_dilation: false
det_db_score_mode: fast
Rec:
rec_algorithm: SVTR_LCNet
ocr_version: PP-OCRv5
model_type: mobile
rec_model_type: ch_PP-OCRv5_rec_mobile_infer.onnx
rec_img_shape: [3, 48, 320]
rec_batch_num: 6
Cls:
cls_model_type: ch_ppocr_mobile_v2.0_cls_infer.onnx
cls_image_shape: [3, 48, 192]
cls_label_list: ['0', '180']
cls_batch_num: 6
cls_thresh: 0.9
EngineConfig:
onnxruntime:
use_cuda: false
use_openvino: false
use_dml: false
providers: ['CPUExecutionProvider']
intra_op_num_threads: 8 # Adjust based on vCPU count
inter_op_num_threads: 8
execution_mode: sequential
graph_optimization_level: enable_all