How to convert from Tensorflow.js (.json) model into Tensorflow (SavedModel) or Tensorflow Lite (.tflite) model?
问题 I have downloaded a pre-trained PoseNet model for Tensorflow.js (tfjs) from Google, so its a json file. However, I want to use it on Android, so I need the .tflite model. Although someone has 'ported' a similar model from tfjs to tflite here, I have no idea what model (there are many variants of PoseNet) they converted. I want to do the steps myself. Also, I don't want to run some arbitrary code someone uploaded into a file in stackOverflow: Caution: Be careful with untrusted code—TensorFlow