Open tucan9389 opened 4 years ago
Saved the model using tf.saved_model.save and then convert the saved model to a tf lite compatible format.
tf.saved_model.save
saved_model_dir = 'save/fine_tuning' tf.saved_model.save(model, saved_model_dir) converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) tflite_model = converter.convert() with open('model.tflite', 'wb') as f: f.write(tflite_model)
Download the converted model and labels
files.download('model.tflite') files.download('labels.txt')
TF 2.0
Saved the model using
tf.saved_model.save
and then convert the saved model to a tf lite compatible format.Download the converted model and labels