deepinsight / deepinsight/insightface

onnx_helper error

Open
#2,300 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

when I run onnx_helper to check the trained onnx model(generate by the default code), I got an error:
![image](https://github.com/deepinsight/insightface/assets/49122192/d6e39ac4-c4e8-4278-912d-5c5caf9f6250)

Traceback (most recent call last):
File "onnx_helper.py", line 251, in
err = handler.check(args.track)
File "onnx_helper.py", line 166, in check
batch_result = self.check_batch(test_img)
File "onnx_helper.py", line 200, in check_batch
net_out = self.session.run(self.output_names, {self.input_name: blob})[0]

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Non-zero status code returned while running Gemm node. Name:'Gemm_185' Status Message: GEMM: Dimension mismatch, W: {512,512} K: 16384 N:512

input: [None, 3, 112, 112]
The onnx_helper blob shape: [32, 3, 112, 112]

Does any one know how to solve this problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.