Created
April 21, 2021 11:30
-
-
Save maifeeulasad/d7e67b50e378584b9f3a9761eaa93da6 to your computer and use it in GitHub Desktop.
Tensorflow Lite | Android | Keras | model converter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
model = tf.keras.models.load_model('name_gender.h5') | |
converter = tf.lite.TFLiteConverter.from_keras_model(model) | |
tflite_model = converter.convert() | |
open("converted_model.tflite", "wb").write(tflite_model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment