Dear NXP Support Team,
I am currently working with the NXP i.MX95 SoC using the following setup:
SoC: i.MX95
OS: Yocto 6.6 (Scarthgap)
# uname -a
Linux imx95 6.6.52
Reference Document: Machine Learning User Guide (UG10166.pdf)
I have followed the steps outlined in the user guide. I am able to successfully execute the benchmark commands for CPU, GPU, and NPU, and the benchmarking results are generated as expected.
However, we are facing an issue with the image classification NPU example using label_image.
Location:
/usr/bin/tensorflow-lite-2.16.2/examples
CPU Execution (Working as Expected)
Command:
./label_image -m mobilenet_v1_1.0_224_quant.tflite -i grace_hopper.bmp -l labels.txt
Output:
INFO: Loaded model mobilenet_v1_1.0_224_quant.tflite
INFO: resolved reporter
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: invoked
INFO: average time: 12.897 ms
INFO: 0.768627: 653 military uniform
INFO: 0.105882: 907 Windsor tie
INFO: 0.0196078: 458 bow tie
INFO: 0.0117647: 466 bulletproof vest
INFO: 0.00784314: 835 suit
The classification results are correct.
NPU Execution (Issue Observed)
Command:
./label_image -m mobilenet_v1_1.0_224_quant.tflite -i grace_hopper.bmp -l labels.txt \
--external_delegate_path=/usr/lib/libneutron_delegate.so
Output:
INFO: Loaded model mobilenet_v1_1.0_224_quant.tflite
INFO: resolved reporter
INFO: EXTERNAL delegate created.
INFO: NeutronDelegate delegate: 29 nodes delegated out of 31 nodes with 1 partitions.
INFO: Applied EXTERNAL delegate.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: invoked
INFO: average time: 0.207 ms
Observation:
The delegate reports that 29 out of 31 nodes are delegated.
However, no image classification results are printed during NPU execution.
The reported inference time (~0.207 ms) appears unusually low compared to expected NPU execution time.
In contrast, CPU execution produces correct classification output.
Could you please advise if this behavior is expected for Yocto 6.6 (Scarthgap)
share steps for Image calassifcation demo using NPU in 6.6.52
iMX95 #NPU