import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_keras_model_file('latest.h5')
tflite_model = converter.convert()
open("latest.tflite", "wb").write(tflite_model)
h5转为tflite
最新推荐文章于 2025-04-12 22:38:54 发布
import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_keras_model_file('latest.h5')
tflite_model = converter.convert()
open("latest.tflite", "wb").write(tflite_model)