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

Updating to the new version of micropython #109

Open MATTYGILO opened 1 year ago

MATTYGILO commented 1 year ago

Could you update the micropython version, because there are a lot of bug fixes that I require that are only available in the newest version of micropython

uraich commented 1 year ago

Hi, I just tried to build the ESP32 version including the camera option, using the newest micropython version from github. I just did a "git pull" and "git submodule update --init" on the micropython folder. For me it worked without any problem

mocleiri commented 1 year ago

The current build is annoying because it doesn't notice upstream changes in any of the sub-modules.

In the tensorflow micro side most projects are embedding the latest snapshot of the tflm code using a code sync job that pulls changes in from the upstream into the examples project.

In ulab they do the opposite and don't have submodules and the build script clones the micropython repository and then the code stands alone.

I'm learning towards the ulab approach but using a shallow clone to speedup the build. https://github.com/v923z/micropython-ulab/blob/master/build.sh#L46

For local development it would still allow you to have the full clone of the other repos.

mocleiri commented 1 year ago

Should update micropython to version 1.20