onnxruntime_backend icon indicating copy to clipboard operation
onnxruntime_backend copied to clipboard

Model failed to create because of output dimensions

Open nyanmn opened this issue 1 year ago • 0 comments

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?

nyanmn avatar Nov 27 '23 00:11 nyanmn