Bladeren bron

fix: config.yaml model_path 改为容器内绝对路径

root 3 maanden geleden
bovenliggende
commit
9e0e8c06f7
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      config.yaml

+ 3 - 3
config.yaml

@@ -11,7 +11,7 @@ Global:
     return_word_box: false
 Det:
     inference_num_threads: 6
-    model_path: models/ch_PP-OCRv4_det_infer.onnx
+    model_path: /usr/local/lib/python3.10/site-packages/rapidocr_openvino/models/ch_PP-OCRv4_det_infer.onnx
     limit_side_len: 480
     limit_type: max
     std: [ 0.5, 0.5, 0.5 ]
@@ -24,13 +24,13 @@ Det:
     score_mode: fast
 Cls:
     inference_num_threads: 6
-    model_path: models/ch_ppocr_mobile_v2.0_cls_infer.onnx
+    model_path: /usr/local/lib/python3.10/site-packages/rapidocr_openvino/models/ch_ppocr_mobile_v2.0_cls_infer.onnx
     cls_image_shape: [3, 48, 192]
     cls_batch_num: 8
     cls_thresh: 0.9
     label_list: ['0', '180']
 Rec:
     inference_num_threads: 6
-    model_path: models/ch_PP-OCRv4_rec_infer.onnx
+    model_path: /usr/local/lib/python3.10/site-packages/rapidocr_openvino/models/ch_PP-OCRv4_rec_infer.onnx
     rec_img_shape: [3, 48, 320]
     rec_batch_num: 6