DB icon indicating copy to clipboard operation
DB copied to clipboard

How to convert pytroch to ONNX

Open tranducanhbk opened this issue 3 years ago • 2 comments

@MhLiao Could you add code for converting Pytorch to ONNX file. Many thank

tranducanhbk avatar Apr 20 '21 06:04 tranducanhbk

I need to know how to convert a trained model based on totaltext_resnet50 model to Onnx. My pytorch version : 1.8.0+cu111 . The exception message I received : ONNX export failed: Couldn't export Python operator Scatter Defined at: C:\Program Files (x86)\Microsoft Visual Studio\Shared ....

I was trying using the following links: https://deci.ai/resources/blog/how-to-convert-a-pytorch-model-to-onnx/ https://michhar.github.io/convert-pytorch-onnx/

I would prefer python code that solves this problem. Thanks.

lbdalmendray avatar Sep 10 '21 15:09 lbdalmendray

Hi @tranducanhbk , Did you find the way to convert to Onnx ? I would appreciate any suggestions.

lbdalmendray avatar Sep 14 '21 18:09 lbdalmendray