k230 HHB编译ONNX模型遇到的问题

Viewed 78

问题描述


在编译个人找到的一个手掌检测模型的ONNX文件时,会遇到TypeError: int() argument must be a string, a bytes-like object or a number, not 'Any'这样的错误,请问有大佬遇到过这样的问题么,是算子不支持的问题或者ONNX版本的问题或是其他问题,感谢

硬件板卡


立创·庐山派K230-CanMV开发板

1 Answers

参数传的不对,用的什么脚本,参数怎么传的给一下?

大佬,上面的错误好像是HHB不能处理非极大值抑制,现在把非极大值抑制处理去掉,更新ONNX模型,只统计理论算力,命令如下:
hhb profiler --model-file palm_detection_no_nms_final.onnx --indicator all -in "input" -on "onnx::Slice_11" -is "1 3 192 192"
出现新的错误:
onnx.onnx_cpp2py_export.shape_inference.InferenceError: [ShapeInferenceError] (op_type:Add, node name: Add_9): [ShapeInferenceError] Inferred shape and existing shape differ in rank: (2) vs (3)
请问您见过类似的么

不要用HHB了,转换模型用nncase,SDK用RT-Smart那一套