Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型路径是对的,提示说找不到模型 #14093

Open
3 tasks done
nissansz opened this issue Oct 25, 2024 · 0 comments
Open
3 tasks done

模型路径是对的,提示说找不到模型 #14093

nissansz opened this issue Oct 25, 2024 · 0 comments

Comments

@nissansz
Copy link

🔎 Search before asking

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

🐛 Bug (问题描述)

L:\paddle\PaddleOCR-2.9.1>python312 tools/infer/predict_rec.py --image_dir='L:\paddle\PaddleOCR-2.9.1\doc\imgs_words_en/word_10.png' --rec_model_dir='L:/paddle/models/ch_PP-OCRv4_rec_server_infer/'
Traceback (most recent call last):
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 877, in
main(utility.parse_args())
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 839, in main
text_recognizer = TextRecognizer(args)
^^^^^^^^^^^^^^^^^^^^
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 154, in init
) = utility.create_predictor(args, "rec", logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\utility.py", line 220, in create_predictor
raise ValueError(
ValueError: not find model.pdmodel or inference.pdmodel in 'L:/paddle/models/ch_PP-OCRv4_rec_server_infer/'

🏃‍♂️ Environment (运行环境)

win10 python 312

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

L:\paddle\PaddleOCR-2.9.1>python312 tools/infer/predict_rec.py --image_dir='L:\paddle\PaddleOCR-2.9.1\doc\imgs_words_en/word_10.png' --rec_model_dir='L:/paddle/models/ch_PP-OCRv4_rec_server_infer/'
Traceback (most recent call last):
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 877, in
main(utility.parse_args())
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 839, in main
text_recognizer = TextRecognizer(args)
^^^^^^^^^^^^^^^^^^^^
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\predict_rec.py", line 154, in init
) = utility.create_predictor(args, "rec", logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\paddle\PaddleOCR-2.9.1\tools\infer\utility.py", line 220, in create_predictor
raise ValueError(
ValueError: not find model.pdmodel or inference.pdmodel in 'L:/paddle/models/ch_PP-OCRv4_rec_server_infer/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant