Skip to content
Discussion options

You must be logged in to vote

把模型名中的“_infer”删去试试

我也遇到了这样的问题,删掉 model_name 结尾的 _infer 然后就可以正常运行了。

# 错误示范
det_model_name = "PP-OCRv5_server_det_infer"
rec_model_name = "PP-OCRv5_server_rec_infer"

# 正确示范
det_model_name = "PP-OCRv5_server_det"
rec_model_name = "PP-OCRv5_server_rec"

ocr = PaddleOCR( use_textline_orientation = True , lang = "ch" , device = device , text_det_box_thresh = 0.2 ,
                         text_detection_model_name = det_model_name , text_recognition_model_name = rec_model_name ,
                         text_detection_model_dir = det_model_dir , text_recognition_model_dir = rec_model_dir )

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SWHL
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants
Converted from issue

This discussion was converted from issue #15594 on September 09, 2025 13:55.