PP-OCRv5导出报错
#15784
Replies: 1 comment
-
您好,可以检查一下paddle版本,PP-OCRv5默认导出方式需要paddle3.0版本。或者参考这个dicussion #15419 (reply in thread) 导出老版模型 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(PaddleOCR_train_env_3.0.2) wq@vfj128:~/model_train/PaddleOCR_latest$ python tools/export_model.py
-c ./train_factory/yml/obu_v5_server_rec.yml
-o Global.pretrained_model=./train_factory/output/obu_v5_server_rec_finetune/best_accuracy.pdparams
Global.save_inference_dir=./train_factory/output/obu_v5_server_rec_finetune/inference/
[2025/06/19 22:46:28] ppocr WARNING: Skipping import of the encryption module.
W0619 22:46:28.828388 876587 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 12.8, Runtime API Version: 11.8
W0619 22:46:28.828879 876587 gpu_resources.cc:164] device: 0, cuDNN Version: 9.5.
[2025/06/19 22:46:29] ppocr INFO: load pretrain successful from ./train_factory/output/obu_v5_server_rec_finetune/best_accuracy
[2025/06/19 22:46:29] ppocr INFO: Export inference config file to ./train_factory/output/obu_v5_server_rec_finetune/inference/inference.yml
Skipping import of the encryption module
Traceback (most recent call last):
File "/home/wq/model_train/PaddleOCR_latest/tools/export_model.py", line 38, in
main()
File "/home/wq/model_train/PaddleOCR_latest/tools/export_model.py", line 34, in main
export(config)
File "/home/wq/model_train/PaddleOCR_latest/ppocr/utils/export_model.py", line 543, in export
export_single_model(
File "/home/wq/model_train/PaddleOCR_latest/ppocr/utils/export_model.py", line 393, in export_single_model
) and os.environ.get("FLAGS_enable_pir_api", None) not in ["0", "False"]
AssertionError
Beta Was this translation helpful? Give feedback.
All reactions