<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic label_image source code - Tensorflow exemple imx-image-full in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/label-image-source-code-Tensorflow-exemple-imx-image-full/m-p/1945588#M227933</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a project involving the &lt;LI-PRODUCT title="i.MX8M" id="i.MX8M"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;STRONG&gt;i.Core MX8M Plus&amp;nbsp;&lt;/STRONG&gt;more specifically I need to execute an .tflite ML model using the NPU accelerator.&lt;/P&gt;&lt;P&gt;I successfully created a Yocto Image [imx-image-full] installed on my device and tested the example program &lt;STRONG&gt;./label_image&lt;/STRONG&gt; located in &lt;STRONG&gt;/usr/bin/tensorflow-lite-2.10.0/&amp;nbsp;&lt;/STRONG&gt;and I executed with the parameter&amp;nbsp;&lt;STRONG&gt;--external_delegate_path=/usr/lib/libvx_delegate.so&amp;nbsp;&lt;/STRONG&gt;and successfully executed using the NPU.&lt;/P&gt;&lt;P&gt;Now I need to&amp;nbsp;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 [ &lt;A href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/label_image" target="_self"&gt;GitHub lite/examples/label_image&lt;/A&gt;&amp;nbsp;&amp;nbsp;] 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.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 02 Sep 2024 16:10:33 GMT</pubDate>
    <dc:creator>macca0612</dc:creator>
    <dc:date>2024-09-02T16:10:33Z</dc:date>
    <item>
      <title>label_image source code - Tensorflow exemple imx-image-full</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/label-image-source-code-Tensorflow-exemple-imx-image-full/m-p/1945588#M227933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a project involving the &lt;LI-PRODUCT title="i.MX8M" id="i.MX8M"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;STRONG&gt;i.Core MX8M Plus&amp;nbsp;&lt;/STRONG&gt;more specifically I need to execute an .tflite ML model using the NPU accelerator.&lt;/P&gt;&lt;P&gt;I successfully created a Yocto Image [imx-image-full] installed on my device and tested the example program &lt;STRONG&gt;./label_image&lt;/STRONG&gt; located in &lt;STRONG&gt;/usr/bin/tensorflow-lite-2.10.0/&amp;nbsp;&lt;/STRONG&gt;and I executed with the parameter&amp;nbsp;&lt;STRONG&gt;--external_delegate_path=/usr/lib/libvx_delegate.so&amp;nbsp;&lt;/STRONG&gt;and successfully executed using the NPU.&lt;/P&gt;&lt;P&gt;Now I need to&amp;nbsp;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 [ &lt;A href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/examples/label_image" target="_self"&gt;GitHub lite/examples/label_image&lt;/A&gt;&amp;nbsp;&amp;nbsp;] 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.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Sep 2024 16:10:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/label-image-source-code-Tensorflow-exemple-imx-image-full/m-p/1945588#M227933</guid>
      <dc:creator>macca0612</dc:creator>
      <dc:date>2024-09-02T16:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: label_image source code - Tensorflow exemple imx-image-full</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/label-image-source-code-Tensorflow-exemple-imx-image-full/m-p/1945642#M227939</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238800"&gt;@macca0612&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to refer to our Github instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/tensorflow-imx/blob/lf-6.6.23_2.0.0/tensorflow/lite/examples/python/label_image.py" target="_blank"&gt;https://github.com/nxp-imx/tensorflow-imx/blob/lf-6.6.23_2.0.0/tensorflow/lite/examples/python/label_image.py&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you need the documentation about our examples and the usage of our software you can refer to the &lt;STRONG&gt;Machine Learning User Guide.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 20:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/label-image-source-code-Tensorflow-exemple-imx-image-full/m-p/1945642#M227939</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-09-02T20:44:10Z</dc:date>
    </item>
  </channel>
</rss>

