2025-11-05 1:06 AM
Hi all,
I'm training a ST_yolox model to detect car. In my user_config.yaml i tried to use this :
pretrained_weights: coco
When i launch the training script i got this error
raise ValueError("\nUnknown or unsupported attribute. Received `{}`{}".format(attr, message))
ValueError:
Unknown or unsupported attribute. Received `pretrained_weights`
Please check the 'training.model' section of your configuration file.
But if i understand correctly we can use this variable
https://github.com/STMicroelectronics/stm32ai-modelzoo-services/blob/main/object_detection/docs/README_TRAINING.md#2-7
If someone can give me some explanation
2025-11-05 2:51 AM
Hello @mls,
You are right, it is in the doc, but the example taken in the doc is the training of a ssd_mobilenetv1
For this type of model, the pretrained weights is available.
For yoloX it is not.
I suggest that, for any model, you start from the yaml in the model folder. In your case, this for example:
In the yaml, you can see what seems to be available or not.
Please feel free to share any feedback that you may have for us to improve our tools.
have a good day,
Julian
2025-11-05 2:55 AM - edited 2025-11-05 2:56 AM
Hello @Julian E.
Thank you for your answer.
Ah ok ... it's a shame that we can't use pretrained weight on this model ...
Then i have a good dataset. But do you think it's better to use yoloV8 or V11 to detect car ?
In this models (V8 or V11) can i use pretrained weight ?
I don't need fast inference but i need precision ?
Also can i test 480x480 input or 640x640 do you think ?
2025-11-05 6:22 AM
Hi @mls,
For yolov8 and v11, it is used directly with ultralytics
ultralytics/examples/YOLOv8-STEdgeAI at main · stm32-hotspot/ultralytics
I believe they offer the possibility to train a model from pretrained weights, then you need to export it.
On the page I linked you should find documentation regarding that.
Regarding performance, you should look at benchmark, I think. And do tests as it will depends on your dataset.
Then for other input size, I am not sure that the application will support it.
Creating a complete firmware is a big task but you can start by training and exporting a model with ultralytics, then benchmark the model with the the AI runner scripts.
The AI runner scripts allow you to run the model through python script on your board. You can pass a dataset by editing it and get the output.
You will find the scripts in your local install of the st edge ai core in Scripts/.
When you have a model, you can use it like this
Script/n6script:
Script/AI runner:
https://stedgeai-dc.st.com/assets/embedded-docs/ai_runner_python_module.html
Have a good day,
Julian
2025-11-06 1:36 AM
Thank you @Julian E. .
For the moment i will work with the yolox model i have generated.
Validate on host is ok but when i'm trying to validate on target with cubeMX AI the user interface seems to be stuck on this step ...