PaddleOCR2Pytorch icon indicating copy to clipboard operation
PaddleOCR2Pytorch copied to clipboard

How to convert pp-structure train model to onnx

Open iazdan opened this issue 3 years ago • 3 comments

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

iazdan avatar Jun 10 '22 00:06 iazdan

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

frotms avatar Jun 12 '22 14:06 frotms

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

iazdan avatar Jun 13 '22 13:06 iazdan

layout model or LayoutXLM model to pytorch model is supported

frotms avatar Jun 18 '22 05:06 frotms