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

Run failed. #2652

Open
livermoressss opened this issue Sep 25, 2024 · 0 comments
Open

Run failed. #2652

livermoressss opened this issue Sep 25, 2024 · 0 comments

Comments

@livermoressss
Copy link

livermoressss commented Sep 25, 2024

I convert the model to onnx and run the helper.
python3 torch2onnx.py /arcface_torch/wf42m_pfc03_40epoch_64gpu_vit_l/model.pt --output arcface_torch_wf42m_pfc03_40epoch_64gpu_vit_l.onnx --network vit_l_dp005_mask_005

After I run python3 onnx_helper.py ./ I got this error. @nttstar

Traceback (most recent call last):
  File "/opt/tiger/insightface/recognition/arcface_torch/onnx_helper.py", line 249, in <module>
    err = handler.check(args.track)
  File "/opt/tiger/insightface/recognition/arcface_torch/onnx_helper.py", line 164, in check
    batch_result = self.check_batch(test_img)
  File "/opt/tiger/insightface/recognition/arcface_torch/onnx_helper.py", line 198, in check_batch
    net_out = self.session.run(self.output_names, {self.input_name: blob})[0]
  File "/home/tiger/.local/lib/python3.9/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 220, in run
    return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/blocks.0/attn/Reshape' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:45 onnxruntime::ReshapeHelper::ReshapeHelper(const onnxruntime::TensorShape&, onnxruntime::TensorShapeVector&, bool) input_shape_size == size was false. The input tensor cannot be reshaped to the requested shape. Input shape:{32,144,2304}, requested shape:{1,144,3,8,96}
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