Created
July 25, 2017 23:51
-
-
Save francoismarceau29/6cc651827a753bd6587411628b344a32 to your computer and use it in GitHub Desktop.
Convert Convolutional Neural Network Keras model to CoreML model (.mlmodel)
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 coremltools | |
coreml_model = coremltools.converters.keras.convert('model.h5', input_names='data', image_input_names='data', is_bgr=True, output_names='species') | |
coreml_model.save('model.mlmodel') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment