-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Description
🔎 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 (问题描述)
🏃♂️ Environment (运行环境)
python3.11
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
python tools/infer/predict_rec.py --image_dir="./doc/imgs_words/ch/word_4.jpg" --rec_model_dir="ch_ppocr_mobile_v2.0_rec_infer"
信息: 用提供的模式无法找到文件。
C:\Users\yhy20010130\Desktop\PaddleOCR-main\yhyocr\Lib\site-packages\paddle\utils\cpp_extension\extension_utils.py:718: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
[2025/12/26 09:21:23] ppocr WARNING: The first GPU is used for inference by default, GPU ID: 0
WARNING: Logging before InitGoogleLogging() is written to STDERR
W1226 09:21:24.969973 23108 gpu_resources.cc:114] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 13.0, Runtime API Version: 12.6
[2025/12/26 09:21:25] ppocr INFO: In PP-OCRv3, rec_image_shape parameter defaults to '3, 48, 320', if you are using recognition model with PP-OCRv2 or an older version, please set --rec_image_shape='3,32,320
W1226 09:21:25.053872 23108 gpu_resources.cc:243] WARNING: device: 0. The installed Paddle is compiled with CUDNN 9.9, but CUDNN version in your machine is 9.5, which may cause serious incompatible bug. Please recompile or reinstall Paddle with compatible CUDNN version.
W1226 09:21:25.489063 23108 rnn_kernel.cu.cc:261] If the memory space of the Input WeightList is not continuous, less efficient calculation will be called. Please call flatten_parameters() to make the input memory continuous.
[2025/12/26 09:21:25] ppocr INFO: Predicts of ./doc/imgs_words/ch/word_4.jpg:('摄l酒n', 0.21496964991092682)