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

tflite-runtime now considered harmful #40

Open
sixtyfive opened this issue Jan 15, 2025 · 3 comments
Open

tflite-runtime now considered harmful #40

sixtyfive opened this issue Jan 15, 2025 · 3 comments

Comments

@sixtyfive
Copy link

sixtyfive commented Jan 15, 2025

Hi, unfortunately it seems that tflite-runtime must be considered deprecated as it's not being updated anymore and depends on Python 3.11 only. A lot of distros have now moved on to 3.12, Arch being on 3.13 already. Might onnxruntime be a medium-term alternative perhaps (since tflite models can be converted to ONNX format)?

@TotalSpaceshipguy
Copy link

TotalSpaceshipguy commented Jan 22, 2025

It looks like tflite-runtime is being split out from tensorflow, and has been replaced by ai-edge-litert
tensorflow/tensorflow#62003

I managed to get script/setup to run by editing requirements.txt and changing
tflite-runtime to
ai-edge-litert-nightly

I then managed to get script/run to execute by editing wyoming_openwakeword/openwakeword.py and changing
try:
import tflite_runtime.interpreter as tflite
to
try:
import ai_edge_litert.interpreter as tflite

I haven't tested any further than that though

@lubosz
Copy link

lubosz commented Jan 27, 2025

The original openWakeWord library does support onnxruntime. tflight is just a hard dependency on wyoming-openwakeword.

See: https://github.com/dscripka/openWakeWord?tab=readme-ov-file#installation

@lubosz
Copy link

lubosz commented Jan 27, 2025

@TotalSpaceshipguy It seems that the litert is still stuck on Python 3.12, see:
https://pypi.org/project/ai-edge-litert-nightly/1.0.1.dev20250126/#files

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

3 participants