mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

Integrate microlite with OpenMV #98

Closed tejalbarnwal closed 1 year ago

tejalbarnwal commented 1 year ago

Hey, is it possible to integrate the microlite module with OpenMV?

mocleiri commented 1 year ago

The microlite module is sort of a fork of openmv. The python API is different but I copied a lot of the glue code between micropython and tflm.

At the time this firmware started there was no OpenMV esp32 or rp2040 port.

If you have an stm32H7 you should use OpenMV. For ESP32 you should consider microlite.

Both integrate tensorflow for micro controllers so if you have the model then you could deploy to either.

tejalbarnwal commented 1 year ago

Hey, I am actually working with Arduino Nicla Vision, which kind of needs OpenMV to work.

tejalbarnwal commented 1 year ago

Could you please guide me to where I could find the parts of microlite in the repository (specifically the regression examples) that follow the template of OpenMV?

mocleiri commented 1 year ago

The micropython module on OpenMV is tf: https://docs.openmv.io/library/omv.tf.html

This example shows how to flash OpenMV to your board: https://docs.arduino.cc/tutorials/nicla-vision/blob-detection

Once it's flashed use the tf module to run your model.