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

Error "Name:'bn_data' Status Message: Invalid input scale: NumDimensions() != 3" #2175

Closed
luan1412167 opened this issue Oct 18, 2019 · 1 comment

Comments

@luan1412167
Copy link

Describe the bug
Hi all,
I'm using onnx runtime from source (latest version support spatial BN = 0 ). my model here

Non-zero status code returned while running BatchNormalization node. Name:'bn_data' Status Message: Invalid input scale: NumDimensions() != 3
Screenshot from 2019-10-18 14-58-20

Thanks so much for your help

Urgency
I must to implement retinaface and arcface on C++ for my thesis at my university.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
  • ONNX Runtime installed from (source or binary): source
  • ONNX Runtime version: latest
  • Python version:
  • Visual Studio version (if applicable):
  • GCC/Compiler version (if compiling from source): 3.15
  • CUDA/cuDNN version:
  • GPU model and memory:
@hariharans29
Copy link
Member

Hi Luan,

Did you convert this model from MxNet by any chance ? It has the same issue as the ArcFace model where the BN nodes are stamped with spatial == 0 and the inputs (scale, B, mean, var) do not conform to ONNX spec -

image

The input shape [3] is acceptable only when spatial == 1. As it is, this is an invalid ONNX model. Please try using the script I shared in the ArcFace model issue to correct this model and try again.

Closing this, because it is an invalid ONNX opset-8 model.

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