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

Stream interface support for KWS model? #2707

Open
ctwillson opened this issue Sep 29, 2024 · 5 comments
Open

Stream interface support for KWS model? #2707

ctwillson opened this issue Sep 29, 2024 · 5 comments
Labels

Comments

@ctwillson
Copy link

Can TFLM support stream mode for KWS as this paper told.It is necessary for microcontroller to reduce the lantecy

@rascani
Copy link
Contributor

rascani commented Sep 30, 2024

Yes, TFLM supports everything necessary for KWS. KWS uses resource variables to store persistent state, so you'll need to construct a MicroInterpreter with a MicroResourceVariables object (it defaults to null). Then it is simply a matter of calling MicroInterpreter::Invoke() for each iteration.

@ctwillson
Copy link
Author

Yes, TFLM supports everything necessary for KWS. KWS uses resource variables to store persistent state, so you'll need to construct a MicroInterpreter with a MicroResourceVariables object (it defaults to null). Then it is simply a matter of calling MicroInterpreter::Invoke() for each iteration.

Thanks for your reply,It's a bit difficult for beginners. I just want to focus on train my kws model by python code from google-research.Can this python code can convert to tensorflow micro?

@ctwillson
Copy link
Author

@rascani Another question:How to train a Streaming model by tensorflow?

@ctwillson
Copy link
Author

Anyone can help me?There is no demo code for stream model.
I trained a stream model by google-research kws,there has a infrence demo code,I try to coverted it to TFLM,but TFLM API is not same as TF Lite.

Copy link
Contributor

github-actions bot commented Nov 5, 2024

"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 Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants