Created
May 6, 2019 04:37
-
-
Save shubham0204/f77aac314957eae28225bafa7e53d5e1 to your computer and use it in GitHub Desktop.
This file contains 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
model.save( 'model.h5' ) | |
converter = tf.lite.TFLiteConverter.from_keras_model_file( 'model.h5' ) | |
converter.post_training_quantize = True | |
tflite_model = converter.convert() | |
size = open( 'recog_model.tflite' , 'wb' ).write( tflite_model ) | |
print( 'Model size > {} Megabytes'.format( size / 1024**2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment