Created
April 21, 2021 11:30
-
-
Save maifeeulasad/d7e67b50e378584b9f3a9761eaa93da6 to your computer and use it in GitHub Desktop.
Revisions
-
maifeeulasad created this gist
Apr 21, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ 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)