You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/'
The text was updated successfully, but these errors were encountered:
🔎 Search before asking
🐛 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/'
The text was updated successfully, but these errors were encountered: