工具与软件:
嗨、团队:
TIDL 版本:10.00.08.00
SDK Linux 映像:10.00.00.08
我使用示例代码:~/edgeai-tidl-tools/examples/jupyter_notebooks/custom-model-onnx.ipynb 将 onnx 文件转换为 TIDL 格式、
但是我得到下面两个错误:
1. Pad/Transpose /分割节点不支持,但我检查支持列表,Pad/Transpose /分割支持。
我还要检查上面的节点 是否满足条件。
收到错误
Traceback (most recent call last):
File "/home/airdsw/ken/root/edgeai-tidl-tools-10_00_08_00/examples/jupyter_notebooks/tidl_model_convert_onnx.py", line 88, in <module>
output = list(sess.run(None, {input_details[0].name : preprocess(calib_images[num])}))[0]
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 200, 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 ReorderInput node. Name:'ReorderInput' Status Message: /root/onnxruntime/onnxruntime/contrib_ops/cpu/nchwc_ops.cc:17 virtual onnxruntime::common::Status onnxruntime::contrib::ReorderInput::Compute(onnxruntime::OpKernelContext*) const X_rank == 4 was false.
。
for num in tqdm.trange(len(calib_images)):
output = list(sess.run(None, {input_details[0].name : preprocess(calib_images[num])}))[0]
但我检查 input_details[0]和 preprocess (calib_images[num]))(0)之间的形状是相同的(1、3,384,640)
请帮助我检查症状、
感谢您的帮助。