LaTeX-OCR icon indicating copy to clipboard operation
LaTeX-OCR copied to clipboard

How to get the model with weights,Want to Export PyTorch model to ONNX format

Open tsharing00 opened this issue 1 year ago • 2 comments

Thank you for the hard work. As a beginner, I would like to export a complete network model (including structure and weights),and transform it into ONNX format,How to do it?Thanks.

tsharing00 avatar Apr 20 '23 14:04 tsharing00

https://github.com/lukas-blecher/LaTeX-OCR/blob/main/pix2tex/model/checkpoints/get_latest_checkpoint.py#L41

pineking avatar Jun 09 '23 02:06 pineking

Hi all, I currently convert model Latex-OCR to ONNX sucessfully. The model's encoder and decoder are converted separately. Details about the code via Code If it's useful for your work please ⭐ my repo

tranngocduvnvp avatar Feb 26 '24 10:02 tranngocduvnvp