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

请问朋友们试过使用paddle2onnx转换检测和识别模型为onnx,我尝试了一下没有成功,项目训练和预测功能都是正常能运行的,转换为onnx时报错 #213

Closed
2017ZYS opened this issue Jun 16, 2020 · 3 comments

Comments

@2017ZYS
Copy link

2017ZYS commented Jun 16, 2020

No description provided.

@2017ZYS 2017ZYS changed the title 请问朋友们试过使用paddle2onnx转换检测和识别模型为onnx,我尝试了一下没有成功,是依赖版本问题吗 请问朋友们试过使用paddle2onnx转换检测和识别模型为onnx,我尝试了一下没有成功,项目训练和预测功能都是正常能运行的,转换为onnx时报错 Jun 16, 2020
@2017ZYS
Copy link
Author

2017ZYS commented Jun 16, 2020

20200616100301

@jiangjiajun
Copy link

你好,请问你转的是检测模型还是识别模型, 目前已支持检测,转换方式如下
##1.安装X2Paddle

git clone https://github.com/PaddlePaddle/X2Paddle.git
cd X2Paddle
python setup.py install

##2.转换模型

x2paddle -f paddle2onnx -m infer_ocr_model -s ./output

**需要注意的是,传入的infer_ocr_model即paddle模型目录,里面需要包括__model__和__params__两个文件(目前PaddleOCR下载下来的inference模型包含的是model和params两个文件,需要手动重命名)

@2017ZYS
Copy link
Author

2017ZYS commented Jun 18, 2020

感谢,目前试了下检测模型的转换,成功了,但是识别模型转换失败了,希望后期能支持识别的转换
20200618152542

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

3 participants