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

Micropython Upgrade to the latest #125

Open kyeonju23 opened 10 months ago

kyeonju23 commented 10 months ago

I want to build a firmware using the latest version of micropython 1.20.0, esp-idf v5.0.2 and the latest version of ulab. I tried to change it separately, but the firmware creation keeps failing. Can you make a newer version of the esp32 firmware?

uraich commented 10 months ago

I have just started to attempt exactly this. Do you just need the binary?

kyeonju23 commented 10 months ago

Hi. First of all, I need a binary, and I want to know how to make a firmware. This is because the latest version, including ulab, was successful, but tflite-micro and examples continued to fail.

uraich commented 10 months ago

Hi @kyeonju23 can you please tell me on which board you want to run the interpreter. Processor type: esp32 esp32s2,s3,... Myself I only have the esp32 and the esp32s3. Does your board have a camera?

kyeonju23 commented 10 months ago

It uses an esp32 board and has no camera.

uraich commented 10 months ago

Ok, I uploaded a firmware version for the esp32, no spiram, no camera to github: https://github.com/uraich/EdgeComputing/tree/main/firmware/firmware-esp32.bin Can you please download and flash it and tell me if it works for you?

uraich commented 10 months ago

Any luck?

kyeonju23 commented 9 months ago

I'm sorry for late response. Maybe I'm not good at using tflite-micro, but the import doesn't work. espnow and ulab work well.

uraich commented 9 months ago

Hmmm, I don't understand! I just downloaded the firmware and flashed it onto an ESP32, no SPIRAM, no camera. I connect to the ESP32 via the serial line and minicom. image As you can see, I can import microlite (which is the tflite-micro MicroPython interface to the tflite-micro library) without problems.

kyeonju23 commented 9 months ago

sorry. I've been doing the import wrong so far. I used the method you suggested and the import was successful. thank you.

import microlite

kyeonju23 commented 9 months ago

hello. Thanks to the binary files you sent me, the project is progressing well. thank you.

As the project progresses, there are more things I want to add. If it's okay, can I receive the binary file creation process as a yml file or code?

2023년 9월 5일 (화) 오후 5:06, Uli Raich @.***>님이 작성:

Hmmm, I don't understand! I just downloaded the firmware and flashed it onto an ESP32, no SPIRAM, no camera. I connect to the ESP32 via the serial line and minicom. [image: image] https://user-images.githubusercontent.com/1673533/265629287-9d61477f-465b-4daf-9c8c-3124e553df2b.png As you can see, I can import microlite without problems.

— Reply to this email directly, view it on GitHub https://github.com/mocleiri/tensorflow-micropython-examples/issues/125#issuecomment-1706139556, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ77LD2CD2FHHTQ3BDFRKILXY3MOXANCNFSM6AAAAAA33GJ5FE . You are receiving this because you were mentioned.Message ID: @.*** com>

uraich commented 8 months ago

In fact I did not use the yaml file, but did the whole process manually. In fact I also did not use the boards directory of tensorflow-micropython-examples but I created my own boards files in the micropython boards directory. You find an yaml file though the under the Actions Tab of the repository. What are the things you want to add?