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

Model failed to create because of output dimensions #220

Open
nyanmn opened this issue Nov 27, 2023 · 0 comments
Open

Model failed to create because of output dimensions #220

nyanmn opened this issue Nov 27, 2023 · 0 comments

Comments

@nyanmn
Copy link

nyanmn commented Nov 27, 2023

I am testing 'text_recognition' model with output shape [1,26,37].
image

My config file is set as

name: "text_recognition"
platform: "onnxruntime_onnx"
max_batch_size : 256
input [
  {
    name: "input.1"
    data_type: TYPE_FP32
    dims: [ 1, 32, 100 ]
  }
]
output [
  {
    name: "307"
    data_type: TYPE_FP32
    dims: [ -1, 26, 37 ]
  }
]


But the error is ERROR: Failed to create instance: model 'text_recognition', tensor '307': for the model to support batching the shape should have at least 1 dimension and the first dimension must be -1; but shape expected by the model is [1,26,37].
How to solve error?

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

1 participant