Android-TensorFlow-Lite-Example icon indicating copy to clipboard operation
Android-TensorFlow-Lite-Example copied to clipboard

Could I re-train it with my own datasets?

Open haophancs opened this issue 6 years ago • 4 comments

haophancs avatar Sep 11 '18 04:09 haophancs

Hi, Yes you definitely can! If the dataset is labeled, you should complete tensorflow for poets. Instead of download the training images from google, add yours.

Then, you have labels and NN (not tf-lite). So in tensorflow for poets 2 tflite you will optimize your model using the TFLite converter.

After that, just swich mobilenet_quant_v1_224.tflite and labels.txt with the files that tf for poets executed.

Good luck :-)

ofirsteinherz avatar Sep 11 '18 21:09 ofirsteinherz

I tried to retrain it with my own data set and used mobilenet_1.0_224 as tfhub module but it crashes, please help me

bathanfritz avatar Oct 05 '18 03:10 bathanfritz

My recent PR has added support for float models, which is probably the type of model you trained. Simply change the variable QUANT to false in TensorFlowImageClassifier.java along with changing the model and lebels name.

soum-io avatar Feb 05 '19 16:02 soum-io

Hi there. I wanted to know if you retrain with a new dataset, how do you order the new labels in the label.txt file? Does the order matter? And if so, how can one be sure of the order to use?

I working with a new model built using tesnorflow 1.13.1's Keras.

sai-pher avatar Apr 28 '19 02:04 sai-pher