PaddleOCR2Pytorch
PaddleOCR2Pytorch copied to clipboard
How to convert pp-structure train model to onnx
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
Hi, @iazdan PP-structure table model is not supported now. You may try layout model or LayoutXLM model.
Do you mean that pp-strucuter train model to pytorch model is not supported, or the pytorch model to onnx?
layout model or LayoutXLM model to pytorch model is supported