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

Is it possible to convert .pb file to tflite? #187

Open
EuphoriaCelestial opened this issue Oct 29, 2020 · 1 comment
Open

Is it possible to convert .pb file to tflite? #187

EuphoriaCelestial opened this issue Oct 29, 2020 · 1 comment

Comments

@EuphoriaCelestial
Copy link

Hi, I have finished training my own wake word model and exported .pb and .pb.params files. It worked very well, nice work guys, thank you!
But I want it to run on Android devices too. As far I as know, it should be in tflite format to be able to run on low energy chips on Android devices; so, questions is how can I do that? If it is not possible to convert to tflite, is there any trick to run the .pb model on Android OS?

@MatthewScholefield
Copy link
Collaborator

Try using the code from the tensorflow 2 PR. It includes support for tflite. Note, however, that the computation graph of the model expects MFCC features as inputs meaning after you get the tflite model running on Android you will need to port this computation.

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

2 participants