cancel
Showing results for 
Search instead for 
Did you mean: 

Hi I am trying to validate the .txt file a custom data over 'validate on desktop' option over cube ai but process is not ending at all. Is it necessary that data must be validated on target only.

YMand.6
Associate II
 
4 REPLIES 4
Gln
ST Employee

Hi @Community member​ ,

Custom data validation can be done on desktop and on target. As described in the X-CUBE-AI User Manual, in section 14.2 Custom data set file format?:

"The expected file is a simple text file in csv format with one flattened input tensor by line. The comma is used as a separator."

When you say the "process is not ending at all", is there any additional information displayed in the STM32CubeMX Output log window? (Window -> Outputs)

Best regards,

Guillaume

YMand.6
Associate II

hi

I am following the similar process. Please have a look at data file

hi

I am following the similar process. Please have a look at data file

Gln
ST Employee

@Community member​ ,

Looking at your actitracker_raw.txt, it seems that your values are encoded as followed:

# Expected Class Nb, Expected Class Label, Timestamp, In X, In Y, In Z

33,Jogging,49105962326000,-0.6946377,12.680544,0.50395286

33,Jogging,49106062271000,5.012288,11.264028,0.95342433

33,Jogging,49106112167000,4.903325,10.882658,-0.08172209

Your custom dataset file should online include input tensors, that is, assuming your input tensor dimension is 3:

# In X, In Y, In Z

-0.6946377,12.680544,0.50395286

5.012288,11.264028,0.95342433

49106112167000,4.903325,10.882658,-0.08172209

X-CUBE-AI version 3.4.0 allows you to dump NN inference input and output data. If you look at your log when executing a validation, you should be able to see the creation of 3 files:

Creating C:\Users\<username>\.stm32cubemx\ai_valid_inputs.csv

Creating C:\Users\<username>\.stm32cubemx\ai_valid_outputs_model.csv

Creating C:\Users\<username>\.stm32cubemx\ai_valid_outputs_c_model.csv

Regards,

Guillaume