Git Product home page Git Product logo

Comments (5)

alessandrocapotondi avatar alessandrocapotondi commented on July 28, 2024

Ciao @EduardShaid,

This project starts from a pre-trained Mobilenet model downloaded by the module keras.applications. You can find the script here: https://github.com/alessandrocapotondi/mobilenet_stmcube_ai/blob/master/keras_model/keras_mobilenet_stm_cubemx_ai.ipynb

The main problem is that not all the layers are supported by STMCubeMX.AI. For example it do not support ReLU directly. Such layers require to be converted to Activation('relu').
This operation is done as well by the script above.

By the way, at the moment I am not able to link the generated code because contrary to what STMCubeMX.AI the activations do not inside the SRAM...I am posting an issue right now on the STM Community Forum.

About the MobileNetV2, I did test it, so I do not have so much feedbacks. Sorry.

Alessandro

from mobilenet_v1_stmcube_ai.

EduardShaid avatar EduardShaid commented on July 28, 2024

The launch of the test_and_compare_models(...) function shows that the old model and the new one work differently ! It turns out that after the transformation of the model, it stops working correctly. Is it so ? and is it necessary to retrain the model ?

from mobilenet_v1_stmcube_ai.

alessandrocapotondi avatar alessandrocapotondi commented on July 28, 2024

Ciao @EduardShaid,

You don't need to retrain the model. There was an issue on the conversion. I was using unbounded relu activations while the pretrained model was based on relu6.

I fixed the model and the script on the last commit 1adeb45.

Thanks,
Alessandro

from mobilenet_v1_stmcube_ai.

EduardShaid avatar EduardShaid commented on July 28, 2024

Yes, thank you, the example works.
I have another question about MobilenetV2: can I use the already trained MobilenetV2 model, but converted by your method, to recognize faces on the STM32 platform ?

from mobilenet_v1_stmcube_ai.

EduardShaid avatar EduardShaid commented on July 28, 2024

Can you give an example of your approach for MobileNetV2 ?
It does not work out for me.

from mobilenet_v1_stmcube_ai.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.