用户您好,请详细描述您所遇到的问题:
系统软件版本: (通过 cat /etc/version 获得)
Ai_Toolchain_Package-release-v1.18.2-OE-v2.4.2
openexplorer/ai_toolchain_centos_7_xj3:v1.15.2
- 问题涉及的技术领域: (硬件、操作系统、驱动、其他)
算法模型转换
- 问题描述:(尽可能详细的描述在进行什么功能的开发或者测试,发现了什么问题,问题现象,并且提供预期的结果)
* 根据文档进行onnx模型转换时,01_check.sh,02_preporcess.sh已经完成,03_build.sh出现下面的错误
模型输入的要求是Y only (1*1382400),尝试地平线模型转换配置脚本里配置输入数据为gray,input shape设为模型要求的1*1382400,转换脚本会报错:list index out of range,看脚本是像是需要4维,改shape为1*1*1449*960后又提示与从模型内获取的input shape不一致.
input_shape改为下面这三种都出错:
input_shape: '1x1440x960x1;1x1x3x1'
input_shape: '1x1382400;1x3'
input_shape: '1x1x1440x960;1x1x1x3'
input format
single image W = 1440 H = 960 luminance channel (Y) from the planar YUV420 format:
full input size is 1440 * 960 = 1382400
normalized ranging from 0.0 to 1.0 in float32 (onnx runner) or ranging from 0 to 255 in uint8 (snpe runner)
camera calibration angles (roll, pitch, yaw) from liveCalibration: 3 x float32 inputs
错误日志
2023-08-08 10:50:41,313 ERROR Input shape of input_img has a dimension [1, 1440, 960, 1] different from [1, 1382400] which is parsered from onnx.
2023-08-08 10:50:41,326 ERROR *** ERROR-OCCUR-DURING {horizon_nn.build_onnx} ***
2023-08-08 10:50:41,327 INFO [Tue Aug 8 10:50:41 2023] End to parse the onnx model.
2023-08-08 10:50:41,327 INFO [Tue Aug 8 10:50:41 2023] End to Horizon NN Model Convert.
其他日志见附件