我尝试到处搜索,尝试了
tflite_interpreter = tf.lite.Interpreter(model_path='model.tflite')
可以吗?
当您创建训练数据时,您可以将标签编码为数字表示。之后标签就会丢失,如果您知道训练模型所用的数据,那么您就可以知道 label_names。 label_names 的信息不存储在模型中。