PaddleOCR
PaddleOCR copied to clipboard
paddleocr3.0.0指定本地模型路径与加载不匹配
🔎 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 请确认"models/v5/PP-OCRv5_server_det_infer"路径相对于运行脚本的路径是正确的
是的 没有问题,路径是正确的
同问