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 conversion error #172

Closed
Guneetkaur03 opened this issue May 30, 2020 · 2 comments
Closed

ONNX conversion error #172

Guneetkaur03 opened this issue May 30, 2020 · 2 comments

Comments

@Guneetkaur03
Copy link

I am attempting to convert this model to ONNX using the tf2onnx tool. The tool can take a frozen graph or saved model as input and produce an ONNX file. Unfortunately, it fails on aocr, apparently to due the graph being invalid.

I am filing the issue here and not against tf2onnx because the error occurred in Tensorflow while attempting to import the graph that aocr export produced. Here is the error:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Node 'cond/ExpandDims' has an _output_shapes attribute inconsistent with the GraphDef for output #0: Shapes must be equal rank, but are 1 and 0

@emedvedev
Copy link
Owner

Duplicate of #138.

This is a known issue, but unfortunately I don't have cycles (or ONNX experience) at the moment. Leaving the original one open though, in case someone wants to try and fix it.

@Ram-Godavarthi
Copy link

Hi @Guneetkaur03 ,

Did you solve problem of attention ocr to onnx???

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