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

How to convert pp-structure train model to onnx #37

Open
iazdan opened this issue Jun 10, 2022 · 3 comments
Open

How to convert pp-structure train model to onnx #37

iazdan opened this issue Jun 10, 2022 · 3 comments

Comments

@iazdan
Copy link

iazdan commented Jun 10, 2022

I was able to convert the PP-structure paddle train model (best_accuracy.pdparams, best_accuracy.pdopt, best_accuracy.stated) to pytorch model (model.pth). How can I convert the model.pth to onnx model considering that model.pth is training model not inference model?
Should I convert the mode.pth( train) to inference model and then to onnx, or sth?

Thanks

@frotms
Copy link
Owner

frotms commented Jun 12, 2022

Hi, @iazdan
PP-structure table model is not supported now. You may try layout model or LayoutXLM model.

@iazdan
Copy link
Author

iazdan commented Jun 13, 2022

Do you mean that pp-strucuter train model to pytorch model is not supported, or the pytorch model to onnx?

@frotms
Copy link
Owner

frotms commented Jun 18, 2022

layout model or LayoutXLM model to pytorch model is supported

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

2 participants