PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

paddle_serving部署教程中,模型转换代码实效。

Open greatliu opened this issue 7 months ago • 2 comments

问题描述 / Problem Description

paddle_serving部署教程中,下载完推理模型,进行转换的时候,因为ocr更新至2.8,paddple更新至2.6,转换脚本失效。 paddle的fluid时效,替换成base后,仍有很多地方失效,导致教程不能进行下去。 有py3.9能用的最新的转换脚本吗?

运行环境 / Runtime Environment

  • OS:ubuntu22.04
  • Paddle:2.6.0 gpu
  • PaddleOCR:2.8.0

复现代码 / Reproduction Code

转换检测模型

python3 -m paddle_serving_client.convert --dirname ./ch_PP-OCRv3_det_infer/
--model_filename inference.pdmodel
--params_filename inference.pdiparams
--serving_server ./ppocr_det_v3_serving/
--serving_client ./ppocr_det_v3_client/

转换识别模型

python3 -m paddle_serving_client.convert --dirname ./ch_PP-OCRv3_rec_infer/
--model_filename inference.pdmodel
--params_filename inference.pdiparams
--serving_server ./ppocr_rec_v3_serving/
--serving_client ./ppocr_rec_v3_client/

完整报错 / Complete Error Message

可能解决方案 / Possible solutions

附件 / Appendix

greatliu avatar Jul 15 '24 01:07 greatliu