Last active
August 13, 2020 16:45
-
-
Save bmabir17/5d8703ad10f7fc2f74cfa5d7d69a7943 to your computer and use it in GitHub Desktop.
For this article https://medium.com/chowagiken-tech-blog/deeplab-image-segmentation-on-android-with-tf-lite-part-2-tf-lite-model-conversion-android-f1fde5e25899
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
# Default Optimization is choosen | |
converter.optimizations = [tf.lite.Optimize.DEFAULT] | |
# Convert to TFLite Model | |
tflite_model = converter.convert() | |
# Save Model as tflite format | |
tflite_path = "deeplabv3_mnv2_custom_257.tflite" | |
tflite_model_size = open(tflite_path, 'wb').write(tflite_model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment