Difference: CustomNopMicroPython (2 vs. 3)

Revision 32022-01-31 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TinyML"

Preparing a custom version of MicroPython with TensorFlow

Introduction

Line: 7 to 7
  Here are the steps to build this custom microPython version:
Changed:
<
<
  • The steps to build the firmware can be found in tflite-micro-micropython/.github/workflows/build_esp32.yml
    In my case the Espressif development environment espidf has already been downloaded and set up earlier. I use espidf version 4.3.1, the latest stable version at time of writing.

    Activate the virtual Python environment needed for espidf
    Make sure that the modules Pillow and Wave have been installed on this virtual environment. If not, install them with pip:
>
>
  • The steps to build the firmware can be found in tflite-micro-micropython/.github/workflows/build_esp32.yml
    In my case the Espressif development environment espidf has already been downloaded and set up earlier. I use espidf version 4.3.1, the latest stable version at time of writing.

    Activate the virtual Python environment needed for espidf (if venvwrapper is installed: workon espidf)
    Make sure that the modules Pillow and Wave have been installed on this virtual environment. If not, install them with pip:
 
    • pip3 install Pillow
    • pip3 install Wave
  • Setup the sub-modules needed for tflm:
    • cd tflite-micro-micropython
    • git submodule init
    • git submodule update --recursive
Added:
>
>
  • Regenerate the microlite/tfm directory
    • cd tensorflow
    • ../micropython-modules/microlite/prepare-tflm-esp.sh
 
  • Setup the sub-modules for the ESP32 port of MicroPython
Changed:
<
<
    • cd micropython
>
>
    • cd ../micropython
 
    • git submodule update --init lib/axtls
    • git update --init lib/berkeley-db-1.xx
  • Get the esp32-camera driver from Espressif
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback