We are encountering a persistent issue while converting our classification models from ONNX to HEF using the Hailo Model Zoo (hailomz). After fine-tuning models (MobileNet_v2_1.0_224 and ResNet V2 50) from existing checkpoints and training on our custom TFRecord datasets, the ONNX export succeeded without issues. However, when we tried to convert the ONNX models to HEF, the process failed with the following error:
IndexError: list index (0) out of range
File “nnx_graph.py”, line 625, in parse_raw_data
parsed_data = numpy_helper.to_array(self._info.attribute[0].t)
We tried removing the batch dimension from the ONNX model, but the issue persisted. The error seems to indicate that the compiler is expecting an attribute that does not exist or is incorrectly referenced within the ONNX model. Without further documentation, we are unsure what specific attributes or indices are required for the conversion to succeed.
Could you clarify what specific attribute or index the converter expects in the ONNX model?
Are there any examples or templates available that demonstrate how to prepare ONNX models for HEF conversion, especially for classification models?