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

请教一下,pytorch ocr crnn的resnet34 pth文件怎么转onnx? #64

Open
nissansz opened this issue Feb 8, 2023 · 4 comments
Open

Comments

@nissansz
Copy link

nissansz commented Feb 8, 2023

请教一下,pytorch ocr crnn的resnet34 pth文件怎么转onnx?

@frotms
Copy link
Owner

frotms commented Feb 8, 2023

构建好网络加载好权重后,用torch.onnx.export就可以转了

@nissansz
Copy link
Author

nissansz commented Feb 8, 2023

怎么构建?有demo 代码吗?

@frotms
Copy link
Owner

frotms commented Feb 8, 2023

按文档能推理起来,在推理代码后面加这一句就可以了

@nissansz
Copy link
Author

nissansz commented Feb 8, 2023

infer可以成功,但是加上torch.onnx.export 报错

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