Open kissablemt opened 2 years ago
m.tflite.h5
maix_train/out
maix_train/train/classifier/__init__.py
self.model = tf.keras.models.load_model("Your filepath of *.h5 ")
self.model = tf.keras.models.load_model("Your filepath of *.h5")
Take mobilenet's classification model as an example
Remember to backup!
m.tflite.h5
file inmaix_train/out
. Copy it to some place else.maix_train/train/classifier/__init__.py
self.model = tf.keras.models.load_model("Your filepath of *.h5 ")
Mobilenet的分类模型测试过可行
记得备份!
maix_train/out
中有一个m.tflite.h5
文件。 将其复制到其他地方。maix_train/train/classifier/__init__.py
中的121到129行self.model = tf.keras.models.load_model("Your filepath of *.h5")
加载模型