tensorflow2

How to convert from Tensorflow.js (.json) model into Tensorflow (SavedModel) or Tensorflow Lite (.tflite) model?

我怕爱的太早我们不能终老 提交于 2021-01-28 12:16:22
问题 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

tfRecords shown faulty in TF2

筅森魡賤 提交于 2020-12-05 11:38:54
问题 I have a couple of own tfrecord file made by myself. They are working perfectly in tf1, I used them in several projects. However if i want to use them in Tensorflow Object Detection API with tf2 (running the model_main_tf2.py script), I see the following in tensorboard: tensorboard images tab It totally masses up the images. (Running the /work/tfapi/research/object_detection/model_main.py script or even legacy_train and they looks fine) Is tf2 using different kind of encoding in tfrecords? Or