<?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 Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1294523#M175693</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30869"&gt;@xiaodong_zhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We must use the label_image source code located in the yocto bitbake path , then it can use the NNAPI acceleration .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the label_image source code download from tensorflow lite website , it is different from the one in Yocto BSP .&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 07:54:10 GMT</pubDate>
    <dc:creator>Arrow_AE_KingLiu</dc:creator>
    <dc:date>2021-06-18T07:54:10Z</dc:date>
    <item>
      <title>I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291047#M175379</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30869"&gt;@xiaodong_zhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear xiaodong&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I compile the 5.4.70 AI robot ROS image using the command "&lt;SPAN&gt;bitbake &lt;/SPAN&gt;&lt;SPAN&gt;imx&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;robot&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;sdk&lt;/SPAN&gt;" ,and I update the OS image with UUU tool, i can brinig up the AI robot EVK successully .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I use the command "bitbake imx-robot-system -c populate_sdk" to generate the SDK , i have installed the SDK in my X86 ubuntu 18.04 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I download the tensorflow lite v2.3.1 source code :&lt;/P&gt;&lt;P&gt;git clone &lt;A href="https://github.com/tensorflow/tensorflow.git" target="_blank" rel="noopener"&gt;https://github.com/tensorflow/tensorflow.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;git checkout v2.3.1&lt;/P&gt;&lt;P&gt;cd /4Tdisk/king/NXP/King_application/tensorflow/tensorflow/lite/examples/label_image/&lt;/P&gt;&lt;P&gt;Compiled the label_image successfully using the command below :&lt;/P&gt;&lt;P&gt;$CC label_image.cc bitmap_helpers.cc ../../tools/evaluation/utils.cc -I=/usr/include/tensorflow/lite/tools/make/downloads/flatbuffers/include \&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-I=/usr/include/tensorflow/lite/tools/make/downloads/absl -O1 -DTFLITE_WITHOUT_XNNPACK&lt;/SPAN&gt; &lt;SPAN&gt;-ltensorflow-lite -lstdc++ -lpthread -lm -ldl -lrt &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;After i get the label_image output application a.out , I copy it to the AI robot EVK .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;It can run successufly using the CPU&amp;nbsp; . &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="刘国华_1-1623378865346.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146867iDE6C9E6ABD20531B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="刘国华_1-1623378865346.png" alt="刘国华_1-1623378865346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But can not use the NNAPI accelerate .&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="刘国华_0-1623378816389.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146866iEDC5ABC3A4FA2D98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="刘国华_0-1623378816389.png" alt="刘国华_0-1623378816389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But the Yocot pre-build label_image can use the NNAPI accelerate . &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="刘国华_2-1623378957615.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146868i890C897662192D8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="刘国华_2-1623378957615.png" alt="刘国华_2-1623378957615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;How can i debug this issue?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 03:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291047#M175379</guid>
      <dc:creator>Arrow_AE_KingLiu</dc:creator>
      <dc:date>2021-06-11T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291088#M175385</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/96361"&gt;@Arrow_AE_KingLiu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Current i.MX Yocto don't support Tensorflow with NPU accelerate(I don't think it will be supported in future). You need to add&amp;nbsp;tensorflow-lite into&amp;nbsp; variable &lt;STRONG&gt;&lt;EM&gt;IMAGE_INSTALL&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;in imx-robot-sdk.bb when you want to deploy model trained and converted by TensorFlow tools.&lt;/P&gt;
&lt;P&gt;BTW, I already add ML packages (include tensorflow-lite) in imx-robot-sdk.bb in last i.MX robot platform.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B3%E5%8F%B0-i-MX-Robot-Platform/ta-p/1198619" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B3%E5%8F%B0-i-MX-Robot-Platform/ta-p/1198619&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please the below update&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////// &lt;FONT color="#339966"&gt;update for v1.0-L5.4.70-2.3.2&lt;/FONT&gt;&amp;nbsp; ///////////////////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 05:23:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291088#M175385</guid>
      <dc:creator>xiaodong_zhang</dc:creator>
      <dc:date>2021-06-11T05:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291097#M175386</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/96361"&gt;@Arrow_AE_KingLiu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you miss -DTFLITE_ENABLE_NNAPI=on&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 05:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291097#M175386</guid>
      <dc:creator>xiaodong_zhang</dc:creator>
      <dc:date>2021-06-11T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291414#M175424</link>
      <description>&lt;P&gt;Good&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 13:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1291414#M175424</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2021-06-11T13:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1294523#M175693</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/30869"&gt;@xiaodong_zhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We must use the label_image source code located in the yocto bitbake path , then it can use the NNAPI acceleration .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the label_image source code download from tensorflow lite website , it is different from the one in Yocto BSP .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 07:54:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1294523#M175693</guid>
      <dc:creator>Arrow_AE_KingLiu</dc:creator>
      <dc:date>2021-06-18T07:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: I.MX8M plus AI Robot platform tensor flow lite NNAPI accelerate issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1438153#M188923</link>
      <description>&lt;P&gt;Can you be more specific where I can find the version of&amp;nbsp;&lt;SPAN&gt;label_image source code that works with NNAPI acceleration, thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 06:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/I-MX8M-plus-AI-Robot-platform-tensor-flow-lite-NNAPI-accelerate/m-p/1438153#M188923</guid>
      <dc:creator>bret_harte</dc:creator>
      <dc:date>2022-04-04T06:12:58Z</dc:date>
    </item>
  </channel>
</rss>

