To verify VSI NPU support is available, run the following command:
docker run -it --net host --privileged --rm arcturusnetworks/eiq:imx8mp bash -c "cd /home/tensorflow-lite-2.4.0/examples; ./label_image -a 1"
You should get the following output:
INFO: Loaded model ./mobilenet_v1_1.0_224_quant.tflite
INFO: resolved reporter
INFO: Created TensorFlow Lite delegate for NNAPI.
INFO: Applied NNAPI delegate.
INFO: invoked
INFO: average time: 2.903 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
To sanity check, run the same app using the CPU as the accelerator (default):
docker run -it --net host --privileged --rm arcturusnetworks/eiq:imx8mp bash -c "cd /home/tensorflow-lite-2.4.0/examples; ./label_image -a 0"
You should get the following output:
INFO: Loaded model ./mobilenet_v1_1.0_224_quant.tflite
INFO: resolved reporter
INFO: invoked
INFO: average time: 41.077 ms
INFO: 0.780392: 653 military uniform
INFO: 0.105882: 907 Windsor tie
INFO: 0.0156863: 458 bow tie
INFO: 0.0117647: 466 bulletproof vest
INFO: 0.00784314: 835 suit
docker pull arcturusnetworks/eiq:imx8mp