Hi guys,
This is the link to the ML guide, https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf.
Chapter "8.1.2 SSD object detection demo" uses the model ssd_mobilenet_v1_quant.tflite. The problem I found with that model is that cannot be converted with vela, thereby I cannot use the i.MX93 NPU.
Compiling manually the model "ssd_mobilenet_v1_quant.tflite", it cannot be converted, returning the next error
Error: Invalid TFLite file. Got "unpack_from requires a buffer of at least 1836597056 bytes for unpacking 4 bytes at offset 1836597052 (actual buffer size is 298)" while parsing buffers length.
So, here there are two points.
- The script "download_models.py" should check the value when converting a model to notify about its failure, something like
- os.system('vela ' + model + " --output-dir " + vela_dir)
+ ret = os.system('vela ' + model + " --output-dir " + vela_dir)
+ if ret != 0:
+ print(f"Error: Failed to convert model {name} with vela")
+ import sys
+ sys.exit(1)
- Model "ssd_mobilenet_v1_quant.tflite" is not compatible with vela/npu.
Is it a problem of that specific model?
What can I do to use the NPU (Ethos-U65)?
BR / Isaac