2024-09-16 01:55 AM
Hello there,
I have STM32H747I-DISCO and ov5640. Can i use ov5640 for model-zoo ? If yes what changes are required ?
I'm following repo : https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main
I have already installed the "requirement.txt"
How can i flash and run object detection pre-trained model example ?
Thanks and Regards,
Ishan
Solved! Go to Solution.
2024-10-03 02:07 AM
Hello @ishanpadaliya ,
Here is a detailed way to flash a pretrained model from model zoo, in this example, I describe how to replicate the FP-AI-VISION1
First, make sure to have the last version of the ST model zoo repository and have installed all the requirements, then, you need to install STM32CubeIDE and STM32CubeMX (we will use everything locally here)
Once both install, we need to install the package X-Cube-AI in cubeMX:
Then, we need to create a fake project, just to finish the install:
You should have a download of EdgeAI starting. It is what we wanted to get.
Once finish, you can quit STM32CubeMX without saving.
Now that we have the model zoo, to replicate the function pack, we want to deploy an object detection model trained to recognize persons.
Normally we would go through this: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/deployment/README.md (which is what I explained in my community answer)
You can read it if you want, but here I will give you everything set correctly for you to just use it:
Normally, everything should go well. Let me know if you have any questions.
The model that I put in the yaml file is one of the fastest. If you want to use another pretrained model in model zoo, you need to change these lines in the yaml:
The pretrained models are in object_detection/pretrained_models
All the information about the models are here: https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/object_detection/pretrained_models
Have a good day,
Julian
2024-09-25 08:12 AM
Hello @ishanpadaliya,
To deploy an object detection model on your STM32 board please follow the object detection deployment README. The ModelZoo supports for STM32H747I-DISCO and B-CAMS-OMV module.
Guillaume
2024-10-03 02:07 AM
Hello @ishanpadaliya ,
Here is a detailed way to flash a pretrained model from model zoo, in this example, I describe how to replicate the FP-AI-VISION1
First, make sure to have the last version of the ST model zoo repository and have installed all the requirements, then, you need to install STM32CubeIDE and STM32CubeMX (we will use everything locally here)
Once both install, we need to install the package X-Cube-AI in cubeMX:
Then, we need to create a fake project, just to finish the install:
You should have a download of EdgeAI starting. It is what we wanted to get.
Once finish, you can quit STM32CubeMX without saving.
Now that we have the model zoo, to replicate the function pack, we want to deploy an object detection model trained to recognize persons.
Normally we would go through this: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/deployment/README.md (which is what I explained in my community answer)
You can read it if you want, but here I will give you everything set correctly for you to just use it:
Normally, everything should go well. Let me know if you have any questions.
The model that I put in the yaml file is one of the fastest. If you want to use another pretrained model in model zoo, you need to change these lines in the yaml:
The pretrained models are in object_detection/pretrained_models
All the information about the models are here: https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/object_detection/pretrained_models
Have a good day,
Julian