<?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: Tutorial for exchanging models How to Machine Learning AI Edge in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1968386#M1742</link>
    <description>&lt;P&gt;Hi,&lt;SPAN&gt;Sherlock987&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I'm sorry for not being able to reply you in time. I have received your question and will deal with it as soon as possible.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 03:54:18 GMT</pubDate>
    <dc:creator>Joey_z</dc:creator>
    <dc:date>2024-10-08T03:54:18Z</dc:date>
    <item>
      <title>Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1962501#M1711</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the board MCXN947 and the sample project frdmmcxn947_mpp_camera_mobilenet_view_tflm. I have trained my own AI modell and to test I would like to simply switch the trained modell within the sample project. I was able to compile but it does not run. Is there somewhere like a tutorial how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1962501#M1711</guid>
      <dc:creator>Sherlock987</dc:creator>
      <dc:date>2024-09-26T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1963406#M1712</link>
      <description>&lt;P&gt;hi,Sherlock987&lt;/P&gt;
&lt;P&gt;Thank you for contacting technical support.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use the elQ tool 1.12.1 to convert your model into a .h file.&lt;/LI&gt;
&lt;LI&gt;Replace the model file in the SDK demo with your model file and modify some of its configurations.&lt;/LI&gt;
&lt;LI&gt;Hardware requirements include connecting the Camera module: OV7670 and the 3.5" TFT LCD module by NXP (P/N PAR-LCD-S035) (Note: LCD is not mandatory for viewing the test results).&lt;BR /&gt;I have attached a screen recording of the detailed operation steps. If you encounter any difficulties, you can provide me with your model, and I will offer you better support.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope it can help you.&lt;/P&gt;
&lt;P&gt;BR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 08:37:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1963406#M1712</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-09-27T08:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1965278#M1722</link>
      <description>&lt;P&gt;Hello Xu Zhang&lt;/P&gt;&lt;P&gt;Thank you very much for your previous response. It was extremely helpful, and I was able to successfully add my own module.&lt;/P&gt;&lt;P&gt;I currently have the FRDM-MCXN947 evaluation board, the OV7670 camera module, and a 3.5" display. I am experimenting with the project frdmmcxn947_mpp_camera_mobilenet_view_tflm as well as dm-label-cifar10-images-on-mcxn947.&lt;/P&gt;&lt;P&gt;I am currently trying to replace the model with simple dataset such as mnist hand digit recognition and testing the accuracy. I will let you know soon if more support is needed. Thanks!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sherlock&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 14:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1965278#M1722</guid>
      <dc:creator>Sherlock987</dc:creator>
      <dc:date>2024-10-01T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1968386#M1742</link>
      <description>&lt;P&gt;Hi,&lt;SPAN&gt;Sherlock987&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I'm sorry for not being able to reply you in time. I have received your question and will deal with it as soon as possible.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 03:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1968386#M1742</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-10-08T03:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1969645#M1745</link>
      <description>&lt;P&gt;Hello Xu Zhang,&lt;/P&gt;&lt;P&gt;thanks for your help. I was able to swap the model using your template project "frdmmcxn947_tflm_label_image". So, I wanted to go one step further using your template project "frdmmcxn947_mpp_camera_mobilenet_view_tflm".&lt;/P&gt;&lt;P&gt;- I have downloaded the dataset 60'000 images for handwritten digits, inverted the colors (black text, white background), resized to 128x128 and trained the model with eIQ. The validation results for digits 0-9 are above 95%.&lt;/P&gt;&lt;P&gt;- Afterwards I have tested this model successfully on a PC with a webcam.&lt;/P&gt;&lt;P&gt;- Then according to your instruction I have converted the model for Neutron which then should fit to frdmmcxn947 using NPU&lt;/P&gt;&lt;P&gt;Unfortunately I am stuck here because with 947 board the inference result is not accurate at all. I am attaching here a github link, hopefully you can have a look there why it is not working:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/SherlockLun/frdmmcxn947_mpp_camera_mnist_view" target="_blank"&gt;https://github.com/SherlockLun/frdmmcxn947_mpp_camera_mnist_view&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:git@github.com:SherlockLun/frdmmcxn947_mpp_camera_mnist_view.git" target="_blank"&gt;git@github.com:SherlockLun/frdmmcxn947_mpp_camera_mnist_view.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;changed folder:&lt;/P&gt;&lt;P&gt;- models/mnistInverted128... (added)&lt;/P&gt;&lt;P&gt;- models/mobilenetv1_labels.h (digits 0-9)&lt;/P&gt;&lt;P&gt;- models/mobilenetv1_ops_micro_tflite.cpp&lt;/P&gt;&lt;P&gt;- camera_mobilenet_view.c (include file)&lt;/P&gt;&lt;P&gt;- fsl_ov7670.c (changing brightness/contrast within GetDefaultconfig)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 07:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1969645#M1745</guid>
      <dc:creator>Sherlock987</dc:creator>
      <dc:date>2024-10-09T07:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1971093#M1757</link>
      <description>&lt;P&gt;hi，&lt;SPAN&gt;Sherlock987&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I will test your project and find the problem as soon as possible.&lt;/P&gt;
&lt;P&gt;Whether you have tried static digital picture data in your project. Light intensity, Angle and distance will affect the accuracy of image acquisition by the camera. Please first use static data to check the accuracy of the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 07:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1971093#M1757</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-10-10T07:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial for exchanging models How to Machine Learning AI Edge</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1979709#M1810</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,Sherlock987&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your detailed reply.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think your inaccurate identification is probably due to the problem of the trained model. I have checked the model_data_len = 1309552 in your model file INT8_out-of-INT8, it is too big ,and I guess your model is not quantized. Please check the options in the following figure during the training of the model using eIQ.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1729652285327.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306253i0D7B98303ACC3FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1729652285327.png" alt="XuZhang_0-1729652285327.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;According to your reply, I used frdmmcxn947_tflm_label_image demo to test the accuracy of static digital data, and I put the modified program in the attachment. The following changes were made:&lt;BR clear="none" /&gt;1. Replace the model.&lt;/P&gt;
&lt;P&gt;2. Modify the hexadecimal data of the stopwatch image to that of the digital image. You can use the py script to convert the image, the script is attached, you can use different data to test your model.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_1-1729652713381.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306256i188BAA962C6C25C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1729652713381.png" alt="XuZhang_1-1729652713381.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Change labels&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Then, I use frdmmcxn947_mpp_camera_mobilenet_view_tflm demo to realize the recognition of numbers by the camera. The code is attached. You can replace the trained model for testing. In my testing process, inaccurate model identification also occurred, which was related to many factors, including the number of samples, parameters set in the training process and the results of model quantization.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_2-1729652732947.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/306257i0D54571ACFB0985F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_2-1729652732947.png" alt="XuZhang_2-1729652732947.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Joey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 11:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Tutorial-for-exchanging-models-How-to-Machine-Learning-AI-Edge/m-p/1979709#M1810</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-11-01T11:29:03Z</dc:date>
    </item>
  </channel>
</rss>

