label_image source code - Tensorflow exemple imx-image-full

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

label_image source code - Tensorflow exemple imx-image-full

147 Views
macca0612
Contributor I

Hi,

I'm working on a project involving the i.MX8M i.Core MX8M Plus more specifically I need to execute an .tflite ML model using the NPU accelerator.

I successfully created a Yocto Image [imx-image-full] installed on my device and tested the example program ./label_image located in /usr/bin/tensorflow-lite-2.10.0/ and I executed with the parameter --external_delegate_path=/usr/lib/libvx_delegate.so and successfully executed using the NPU.

Now I need to customize the code to execute the model on a live webcam, the question is Where I can find the code of this binary file? I supposed that was the one included in the TensorFlow GitHub repository [ GitHub lite/examples/label_image  ] but this code did not mention the external delegate, which is the one that allow me to execute the model on the NPU, which is fundamental for my project.

 

 
 
 
 
0 Kudos
Reply
1 Reply

124 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @macca0612!

Thank you for contacting NXP Support!

 

You have to refer to our Github instead:

 

https://github.com/nxp-imx/tensorflow-imx/blob/lf-6.6.23_2.0.0/tensorflow/lite/examples/python/label...

 

Also if you need the documentation about our examples and the usage of our software you can refer to the Machine Learning User Guide.

 

https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf

 

Best Regards!

Chavira

0 Kudos
Reply