How to start with Model training and vision based application in MCXN947

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

How to start with Model training and vision based application in MCXN947

Jump to solution
77 Views
Gayathriii
Contributor II

I ran the face detect ACH code, it's working. I want to know more about the BYOM and training a model from scratch in the eIQ toolkit. In the last conference, NXP mentioned something about BYOM and BYOD.

I need to upload my images, label it and train and want to put it in MCXN947 board. Is it possible?

I tried accessing the eIQ model creator, the request has been submitted. I have downloaded the eIQ timeseries (I think it's for data like motor anomaly detection or something) and also downloaded the eIQ neutron SDK. I just want the workflow or material or user guide for training the model and put it in MCXN947.

Gayathriii_0-1788414712451.pngGayathriii_0-1788414712451.png

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
47 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Gayathriii 

Yes, this is absolutely possible on the MCXN947.

For your use case:

Upload my images → label them → train a model → run on MCXN947

This is a classic BYOD workflow.

Option 1: eIQ Model Creator

Once your eIQ Model Creator access is approved:

Create a new image classification project.
Upload your image dataset.
Label the images (or organize them by folders/classes).
Train a model using transfer learning.
Export a TensorFlow Lite model (.tflite).
Use the eIQ Neutron SDK to convert the model for MCXN947.
Integrate the converted model into your MCUXpresso project and run it on the board.

Option 2: Train Yourself (TensorFlow)

You do not actually need Model Creator.

You can:

Collect images.
Label them.
Train with TensorFlow/Keras.
Export

Resources:

1. MCXN947: How to Train and Deploy Customer ML Model to NPU

Images
   ↓
Training
   ↓
TensorFlow Lite model
   ↓
neutron-converter
   ↓
NPU-enabled .tflite
   ↓
MCUXpresso project
   ↓
MCXN947 NPU
``

 MCXN947:如何训练和部署客户 ML 模型到 NPU

2. AN14241 - How to Integrate Customer ML Model to NPU on MCX N94x

3. How to Get Started with NPU and ML in MCX Microcontrollers
 
BR
Harry

View solution in original post

0 Kudos
Reply
1 Reply
48 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Gayathriii 

Yes, this is absolutely possible on the MCXN947.

For your use case:

Upload my images → label them → train a model → run on MCXN947

This is a classic BYOD workflow.

Option 1: eIQ Model Creator

Once your eIQ Model Creator access is approved:

Create a new image classification project.
Upload your image dataset.
Label the images (or organize them by folders/classes).
Train a model using transfer learning.
Export a TensorFlow Lite model (.tflite).
Use the eIQ Neutron SDK to convert the model for MCXN947.
Integrate the converted model into your MCUXpresso project and run it on the board.

Option 2: Train Yourself (TensorFlow)

You do not actually need Model Creator.

You can:

Collect images.
Label them.
Train with TensorFlow/Keras.
Export

Resources:

1. MCXN947: How to Train and Deploy Customer ML Model to NPU

Images
   ↓
Training
   ↓
TensorFlow Lite model
   ↓
neutron-converter
   ↓
NPU-enabled .tflite
   ↓
MCUXpresso project
   ↓
MCXN947 NPU
``

 MCXN947:如何训练和部署客户 ML 模型到 NPU

2. AN14241 - How to Integrate Customer ML Model to NPU on MCX N94x

3. How to Get Started with NPU and ML in MCX Microcontrollers
 
BR
Harry
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2410814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20start%20with%20Model%20training%20and%20vision%20based%20application%20in%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2410814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20ran%20the%20face%20detect%20ACH%20code%2C%20it's%20working.%20I%20want%20to%20know%20more%20about%20the%20BYOM%20and%20training%20a%20model%20from%20scratch%20in%20the%20eIQ%20toolkit.%20In%20the%20last%20conference%2C%20NXP%20mentioned%20something%20about%20BYOM%20and%20BYOD.%3C%2FP%3E%3CP%3EI%20need%20to%20upload%20my%20images%2C%20label%20it%20and%20train%20and%20want%20to%20put%20it%20in%20MCXN947%20board.%20Is%20it%20possible%3F%3C%2FP%3E%3CP%3EI%20tried%20accessing%20the%20eIQ%20model%20creator%2C%20the%20request%20has%20been%20submitted.%20I%20have%20downloaded%20the%20eIQ%20timeseries%20(I%20think%20it's%20for%20data%20like%20motor%20anomaly%20detection%20or%20something)%20and%20also%20downloaded%20the%20eIQ%20neutron%20SDK.%20I%20just%20want%20the%20workflow%20or%20material%20or%20user%20guide%20for%20training%20the%20model%20and%20put%20it%20in%20MCXN947.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Gayathriii_0-1788414712451.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Gayathriii_0-1788414712451.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395820iECF312428349EB3C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Gayathriii_0-1788414712451.png%22%20alt%3D%22Gayathriii_0-1788414712451.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EGayathriii_0-1788414712451.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EGayathriii_0-1788414712451.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2410814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2410963%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20How%20to%20start%20with%20Model%20training%20and%20vision%20based%20application%20in%20MCXN947%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2410963%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261601%22%20target%3D%22_blank%22%3E%40Gayathriii%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20this%20is%20absolutely%20possible%20on%20the%20MCXN947.%3C%2FP%3E%0A%3CP%3EFor%20your%20use%20case%3A%3C%2FP%3E%0A%3CP%3EUpload%20my%20images%20%E2%86%92%20label%20them%20%E2%86%92%20train%20a%20model%20%E2%86%92%20run%20on%20MCXN947%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20classic%20BYOD%20workflow.%3C%2FP%3E%0A%3CP%3EOption%201%3A%20eIQ%20Model%20Creator%3C%2FP%3E%0A%3CP%3EOnce%20your%20eIQ%20Model%20Creator%20access%20is%20approved%3A%3C%2FP%3E%0A%3CP%3ECreate%20a%20new%20image%20classification%20project.%3CBR%20%2F%3EUpload%20your%20image%20dataset.%3CBR%20%2F%3ELabel%20the%20images%20(or%20organize%20them%20by%20folders%2Fclasses).%3CBR%20%2F%3ETrain%20a%20model%20using%20transfer%20learning.%3CBR%20%2F%3EExport%20a%20TensorFlow%20Lite%20model%20(.tflite).%3CBR%20%2F%3EUse%20the%20eIQ%20Neutron%20SDK%20to%20convert%20the%20model%20for%20MCXN947.%3CBR%20%2F%3EIntegrate%20the%20converted%20model%20into%20your%20MCUXpresso%20project%20and%20run%20it%20on%20the%20board.%3C%2FP%3E%0A%3CP%3EOption%202%3A%20Train%20Yourself%20(TensorFlow)%3C%2FP%3E%0A%3CP%3EYou%20do%20not%20actually%20need%20Model%20Creator.%3C%2FP%3E%0A%3CP%3EYou%20can%3A%3C%2FP%3E%0A%3CP%3ECollect%20images.%3CBR%20%2F%3ELabel%20them.%3CBR%20%2F%3ETrain%20with%20TensorFlow%2FKeras.%3CBR%20%2F%3EExport%3C%2FP%3E%0A%3CP%3EResources%EF%BC%9A%3C%2FP%3E%0A%3CP%3E1.%20MCXN947%3A%20How%20to%20Train%20and%20Deploy%20Customer%20ML%20Model%20to%20NPU%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EImages%0A%20%20%20%E2%86%93%0ATraining%0A%20%20%20%E2%86%93%0ATensorFlow%20Lite%20model%0A%20%20%20%E2%86%93%0Aneutron-converter%0A%20%20%20%E2%86%93%0ANPU-enabled%20.tflite%0A%20%20%20%E2%86%93%0AMCUXpresso%20project%0A%20%20%20%E2%86%93%0AMCXN947%20NPU%0A%60%60%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FMCX-Microcontrollers-Knowledge%2FMCXN947-How-to-Train-and-Deploy-Customer-ML-model-to-NPU%2Fta-p%2F1899497%22%20target%3D%22_blank%22%3EMCXN947%EF%BC%9A%E5%A6%82%E4%BD%95%E8%AE%AD%E7%BB%83%E5%92%8C%E9%83%A8%E7%BD%B2%E5%AE%A2%E6%88%B7%20ML%20%E6%A8%A1%E5%9E%8B%E5%88%B0%20NPU%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3BAN14241%20-%20How%20to%20Integrate%20Customer%20ML%20Model%20to%20NPU%20on%20MCX%20N94x%3C%2FP%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fwww.newark.com%2Fsite%2Fbinaries%2Fcontent%2Fassets%2Fcommon%2Fproduct-family-documents%2Fnxp-frdm-mcxn947%2Fnxp-frdm-mcxn947-an9.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHow%20to%20Integrate%20Customer%20ML%20Model%20to%20NPU%20on%20MCX%20N94x%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%3E3.%26nbsp%3BHow%20to%20Get%20Started%20with%20NPU%20and%20ML%20in%20MCX%20Microcontrollers%3C%2FDIV%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FMCX-Microcontrollers-Knowledge%2FHow-to-get-started-with-NPU-and-ML-in-MCX-Microcontrollers%2Fta-p%2F1788440%22%20target%3D%22_blank%22%3EMCX%20%E5%BE%AE%E6%8E%A7%E5%88%B6%E5%99%A8%E4%B8%AD%20NPU%20%E4%B8%8E%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E7%9A%84%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EBR%3C%2FDIV%3E%0A%3CDIV%3EHarry%3C%2FDIV%3E%3C%2FLINGO-BODY%3E