Skip to main content
Associate III
May 6, 2025
Question

Problems encountered when using X-CUBE-AI to compile YoloV8 on STM32U5

  • May 6, 2025
  • 1 reply
  • 546 views

I used JPG photos for training. So, after integrating it into the STM32U5 using X-CUBE-AI, what kind of data should I use for verification?

Used RGB565?YUV?

I have tried using JPG data, but it didn't work.

1 reply

SunwazAuthor
Associate III
May 8, 2025

Can anyone help me? If there's anything you don't understand, I can provide more descriptions.

Julian E.
Technical Moderator
May 21, 2025

Hello @Sunwaz,

 

Are talking about the way to use data in the main.c or in the GUI of X Cube AI.

 

You trained a model in python right? Being jpg or anything else don't matter. It was treated as a array of a certain size, which is your model input size (for example 124x124x3).

 

When providing data in your code, you need to fill a buffer of that size.

 

have a good day,

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SunwazAuthor
Associate III
May 23, 2025

Hi @Julian E. 

     Thank you very much for your reply.

     This is a schematic diagram of my model. From it, I can see that the input is a 96 * 96 * 3 array of S8. At this time, should I enter RGB888 or RGB565 in my code? When I trained, looking at the information of the JPG got a color depth of 24bits. My understanding is that an array in RGB888 format should be passed here. I don't know if my understanding is correct.

   have a good day,

  Sunwaz

Sunwaz_0-1747979846509.png