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

ONNX export #6

Closed
leonid-pishchulin opened this issue May 22, 2023 · 2 comments
Closed

ONNX export #6

leonid-pishchulin opened this issue May 22, 2023 · 2 comments

Comments

@leonid-pishchulin
Copy link

could you provide a script to export model to ONNX, please?

@QitaoZhao
Copy link
Owner

I may do this soon as I am currently busy with some stuff.

@noahcoolboy
Copy link

Hi Leonid
It is not currently possible to convert these models to onnx
I have attempted to do so, but it seems that there are some torch operators used by this model which are not yet supported for the conversion

Placing the following line under model.eval()
torch.onnx.export(model.module, torch.randn(1, args.frames, args.n_joints, 2).cuda(), "poseformer.onnx", verbose=True, opset_version=17)
Will cause an error: torch.onnx.errors.UnsupportedOperatorError: Exporting the operator 'aten::fft_fft' to ONNX opset version 17 is not supported.

Conversion will probably become possible, once this issue gets closed:
pytorch/pytorch#81075

If you do have a solution, or have been able to convert it, please do tell me as I am trying to do the same
Thank you

@QitaoZhao QitaoZhao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
@QitaoZhao QitaoZhao reopened this Aug 1, 2023
@QitaoZhao QitaoZhao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
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

3 participants