Reputation: 316
I have trained a tensorflow model in Google Cloud using instructions from this link and have generated a Binary (application/octet-stream) file having .pb extension. However instead of deploying the model in the cloud, I want to use the model locally in my android device. How can I do the same?
Upvotes: 0
Views: 213
Reputation: 5446
You can do that and the easiest way of doing it right now is following this code lab: Tensorflow for Poets 2: TFLite
In the code lab you'll have to embed the model as an asset but an evolution you can make is download the model from the Cloud Storage whenever there's a new version of it.
If your model uses operations that are not yet supported by TFLite, you can use Tensorflow Mobile. It probably won't be as fast but it still works fine (There's also a code lab to understand it better).
Upvotes: 1