GraSim
GraSim

Reputation: 4230

Difference between using tensorflow-lite:0.0.0-nightly and tensorflow-lite in an Android App

I am trying to debug an existing Android app that uses tensorflow-lite to detect objects. The app implements the tensorflow library like below :

implementation('org.tensorflow:tensorflow-lite:0.0.0-nightly') { changing = true }
implementation('org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly') { changing = true }
implementation('org.tensorflow:tensorflow-lite-support:0.0.0-nightly') { changing = true }

But examples I have found online for object detection, have implemented tensorflow-lite in the following way :

implementation 'org.tensorflow:tensorflow-lite-task-vision:0.2.0'

My questions are:

PS: We are using our own custom trained model/tflite.

Upvotes: 0

Views: 2045

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57203

Changing, or snapshot versions are used when you need Gradle to get a new version of the dependency with the same name from time to time (once in 24 hours, unless specified explicitly otherwise).

I believe that whoever chose the nightly version of tensorflow, was wrong. As you say, this version may have bugs, and worse, these bugs will change overnight. Find some fixed version that you are comfortable with, study its changelog, and reset your implementation to refer to this version.

Upvotes: 2

Related Questions