Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Please add port TensorFlow Lite Micro to the new RP2350 (and old RP2040) microcontroller platforms (e.g. new Raspberry Pi Pico 2 and the original Raspberry Pi Pico + third-party "Picos")? #2730

Open
Hedda opened this issue Oct 25, 2024 · 4 comments

Comments

@Hedda
Copy link

Hedda commented Oct 25, 2024

Can you please add an official port of the TensorFlow Lite Micro (LiteRT for microcontrollers) library to new RP2350 and old the RP2040 microcontroller platforms from Raspberry Pi?

Note that there already looks to be a few unofficial ports of the TensorFlow Lite Micro library for the older RP2040 hardware, however there is no official support upstream for RP2040 or RP2350, (and obviously the newer RP2350 MCU should offcer a lot better performance). I think that RP2350 is also very intesting because it features different CPU-cores that uses ARM and RISC architecture (though developer have to choose which cores to bootstrap).

There is LiteRT downstream port for older RP2040 but does't look to be maintained + has not been updated to new RP2350, see:

and

Someone has however submitted a Pico2 patch for RP2350 to that GitHub repository but that pull request has not been merged (again a sign that the downstream repo is not being maintained).

RP2350 is the successor and next-generation of RPi RP2040, as such the RP2350 is newly released so there is not yet widespread support but RP2040 based development boards are already very popular in schools and STEM education so think they are interesting as alternatives to ESP32 because documentation is often easier as often targeting beginners which in turn means can lead to broader use and use cases.

and/or

FYI, there is not yet an official Raspberry Pi Pico 2 board with Wi-Fi but there are third-party boards with WiFi and LAN, see:

@Hedda Hedda changed the title [REQUEST] Please add port TensorFlow Lite Micro to the new RP2350 (and old RP2040) microcontroller platforms (e.g. Raspberry Pi Pico 2)? [REQUEST] Please add port TensorFlow Lite Micro to the new RP2350 (and old RP2040) microcontroller platforms (e.g. new Raspberry Pi Pico 2 and the original Raspberry Pi Pico + third-party "Picos")? Oct 25, 2024
@Hedda
Copy link
Author

Hedda commented Oct 25, 2024

By the way, with all the current hype of AI and voice control it would be very cool proof-of-concept and real-world use case if could get Raspberry Pi to then make a demo video showing microWakeWord (micro--Wake-Word, a.k.a. mWW) running natively on RP2350 or RP2040 microcontrollers and maybe post a blog post about it a show case for tflite-micro and Raspberry Pi Pico 2!

microWakeWord (also known as "mWW") is a fully open-source wake word detection library made for voice assistant appliance hardware based on MCUs, and it depends on the TensorFlow Lite (LiteRT) library to run fast nativley on low-power microcontrollers:

The microWakeWord was created by Kevin Ahrendt and it enables for example the ESPHome firmware (via microphones) to on-device wake words detections on microcontroller devices. microWakeWord has since been adopted by the non-profit Open Home Foundation who use it on Home Assistant voice control satellite hardware based on Espresiff's ESP32-S3 microcontroller (for its own Assist conversation agent):

If you do please have the Raspberry Pi folks post a new blog post to announce the updated and added RP2350 support!

I also guess that ESPHome would need to update the RP2040 Platform for it or add another platform?

PS: The microWakeWord project ownership as been transfered to the Open Home Foundation so it will always remain as open-source:

Copy link
Contributor

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

@github-actions github-actions bot added Stale and removed Stale labels Nov 19, 2024
Copy link
Contributor

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

@github-actions github-actions bot added the Stale label Dec 16, 2024
@Hedda
Copy link
Author

Hedda commented Dec 16, 2024

This is still wanted and would think this be of interest since it is a very popular development platform for new developers and beginners starting with microcontrollers as much used in schools or other classes and other education situations, (i.e. RP2040 and RP2350 will in the future likely be one of the more common microcontroller development platforms which many of the next-generation developers got started on).

@github-actions github-actions bot removed the Stale label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant