I am porting this TensorFlow JS tutorial to Android. I must convert this JSON graph TensorFlow model to .tflite so I can use it there.
I googled about TensorFlow model conversion tools but couldn't find anything. I also looked at whether the Android TensorFlow-lite library has a way to import these graph models, but I didn't find anything either.
I tried converting it with the following Python script I found here, but it expects a .pb file:
import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)
tflite_model = converter.convert()
open("converted_model.tflite", "wb").write(tflite_model)