mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-14 06:50:48 +08:00
Update use_cuda parameter in config.yaml
This commit is contained in:
1 parent
2f66907a6c
commit
bd2eba459f
2 files changed
+6
-4
No files matched your search
@@ -7,6 +7,8 @@ Global:
|
||||
min_height: 30
|
||||
width_height_ratio: 8
|
||||
|
||||
use_cuda: &use_cuda false
|
||||
|
||||
intra_op_num_threads: &intra_nums -1
|
||||
inter_op_num_threads: &inter_nums -1
|
||||
|
||||
@@ -14,7 +16,7 @@ Det:
|
||||
intra_op_num_threads: *intra_nums
|
||||
inter_op_num_threads: *inter_nums
|
||||
|
||||
use_cuda: false
|
||||
use_cuda: *use_cuda
|
||||
|
||||
model_path: models/ch_PP-OCRv4_det_infer.onnx
|
||||
|
||||
@@ -32,7 +34,7 @@ Cls:
|
||||
intra_op_num_threads: *intra_nums
|
||||
inter_op_num_threads: *inter_nums
|
||||
|
||||
use_cuda: false
|
||||
use_cuda: *use_cuda
|
||||
|
||||
model_path: models/ch_ppocr_mobile_v2.0_cls_infer.onnx
|
||||
|
||||
@@ -45,7 +47,7 @@ Rec:
|
||||
intra_op_num_threads: *intra_nums
|
||||
inter_op_num_threads: *inter_nums
|
||||
|
||||
use_cuda: false
|
||||
use_cuda: *use_cuda
|
||||
|
||||
model_path: models/ch_PP-OCRv4_rec_infer.onnx
|
||||
|
||||
|
||||
Reference in new issue
Block a user