PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

paddleocr3.0.0指定本地模型路径与加载不匹配

Open wqw0806 opened this issue 2 months ago • 3 comments

🔎 Search before asking

  • [x] I have searched the PaddleOCR Docs and found no similar bug report.
  • [x] I have searched the PaddleOCR Issues and found no similar bug report.
  • [x] I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

paddleocr3.0.0指定本地模型路径与加载不匹配

🏃‍♂️ Environment (运行环境)

paddleocr3.0.0

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

    ocr_default_args = {
        "lang": "ch",
        "use_doc_orientation_classify": True,
        "use_doc_unwarping": False,
        "use_textline_orientation": False,
        "text_detection_model_dir": "models/v5/PP-OCRv5_server_det_infer",
        "text_recognition_model_dir": "models/v5/PP-OCRv5_server_rec_infer",
        "device": device,
    } 我指定了server版本的模型,但是还是创建mobile版本的,Creating model: ('PP-OCRv5_mobile_det', 'models/v5/PP-OCRv5_server_det_infer')

Creating model: ('PP-OCRv5_mobile_rec', 'models/v5/PP-OCRv5_server_rec_infer') 这是什么问题 怎么解决

wqw0806 avatar Oct 10 '25 08:10 wqw0806

@wqw0806 请确认"models/v5/PP-OCRv5_server_det_infer"路径相对于运行脚本的路径是正确的

leo-q8 avatar Oct 20 '25 06:10 leo-q8

是的 没有问题,路径是正确的

wqw0806 avatar Oct 22 '25 03:10 wqw0806

同问

xiahc avatar Nov 10 '25 05:11 xiahc