This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
嗨、团队:
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)
请帮助我检查症状、
感谢您的帮助。
是的副本
e2e.ti.com/.../processor-sdk-j722s-tidl-convert-default-onnx-tflite-model-to-tidl-format-fail
Chris、您好:
这种症状适用于自定义 onnx (我自己的 onnx)、
另一个症状是默认 Onnx 模型。
我注意到了 规格相匹配 、 转置 和 拆分 节点被标记为不受支持。
您能否说明为什么这些节点不受支持以及这是否会影响转换结果?
感谢您的帮助。
Chris、您好:
我通过实验观察到、如果模型中没有不受支持的节点、则const X_rank == 4 was false
不会出现问题。 但是、我仍然不清楚为什么节点(如Pad
、Transpose
和)Split
会导致不受支持的错误。
您能提供一些关于此行为的见解或指导吗?
感谢您的时间和帮助。
此致、
Ken