我正在尝试将加载hub.load的模型转换为TFLite。所讨论的模型是在上发现的通用句子编码器(4),我在Python中尝试了Tensorflow版本2.1.0和2.2.0。import tensorflow as tf
model = hub.load("https://tfhub.dev/google/universal-sentence-encodertf.lite.TF
我试图将冻结的SSD移动电话v2模型转换为TFLITE格式,以供安卓使用。(OK)
使用TF对象检测API提供的export_inference_graph.py将经过训练的model.ckpt输出到冻结模型文件中。:tensorflow:The specified SavedModel has no variables; no checkpoints were restored.INFO:tensorf