cancel
Showing results for 
Search instead for 
Did you mean: 

modelzoo deployment error

yessine
Associate III

i need some assistance with modelzoo . so first of all . i converted a dataset to darknet using converter.py than i trained it using train mode i had a 2.6mo  .h5 file  then i quatized it to 600kb .tflite file. but when i tried to deploy it i had an error saying just exception "wrong"  from compile.py file. 

so is there any assistances about this error 

and second of all i realized that despite modelzoo say that he can only deploy tflite models . there are some tflite models that he cannot deploy . ( i tried 4 different tflite models 1 was deployed and 3 did not) so is there any parameters or configurations i should know about  in builiding my model(conditions to be respected) so my model can be compatible with modelzooScreenshot 2024-10-15 215102.png

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello @yessine ,

In a zip file, can you share your .h5 model and your .yaml script please.

I believe you do object detection, you can follow the documentation about the deployment here in case you haven't seen it: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/deployment/README.md

 

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.

View solution in original post

3 REPLIES 3
Julian E.
ST Employee

Hello @yessine ,

In a zip file, can you share your .h5 model and your .yaml script please.

I believe you do object detection, you can follow the documentation about the deployment here in case you haven't seen it: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/object_detection/deployment/README.md

 

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.

i understood that the tflite  model needs to be in 8bits . but now i have another question. honestly i coudnt configure the ai developer cloud credentials correctly in the pc. username and password . it kept saying login failed when deploying the model . i read the tutorial in this link many times but i failed to really understand how the mail and password should be written. so can u provide a more detailed guide. for example sometimes the guide says that i need to put my email and sometimes my username. and does the whole sentence should be written in utf-8 or just the special caracters.  and for utf code-8 in the website he saif for example %40 but in internet they saif its  \x40 so what is it \x or %

 

https://wiki.st.com/stm32mcu/wiki/AI:How_to_install_STM32_model_zoo

Hello @yessine ,

The username is the exact same one you are using to connect to https://my.st.com/cas/login.

ST login username is the email address you are used to create your account.

To be sure of the username, pass word to use, sign in a first time to https://stedgeai-dc.st.com/home.

Only special characters will have a specific code in utf-8.

As specified in the "how to":
UTF-8 encode the password if it has any special characters. If the password contains special characters such as @, %, & or !, they must be UTF-8[1] encoded. For example, if a password is Edge@AI, it becomes Edge%40AI once encoded. An online encoder[2] can be used for this purpose.

[1]: https://en.wikipedia.org/wiki/List_of_Unicode_characters

[2]: https://www.urlencoder.org/

The online encoder https://www.urlencoder.org/ is very useful, you just enter your email address or key word to translate and you get the encoded stream that is by the way confirming it is % that needs to be used.

Best Regards

Example:

john.doe@gmail.com => john.doe%40gmail.com

a#b!c$d%e => a%23b%21c%24d%25e