Created
November 6, 2019 17:06
-
-
Save anupamchugh/a410eb258b73fbb15a820713e43f6b05 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
import coremltools | |
coreml_model = coremltools.converters.keras.convert('model.h5', input_names=['image'], output_names=['output'], | |
image_input_names='image') | |
coreml_model.author = 'Anupam Chugh' | |
coreml_model.short_description = 'Cat Dog Classifier converted from a Keras model' | |
coreml_model.input_description['image'] = 'Takes as input an image' | |
coreml_model.output_description['output'] = 'Prediction as cat or dog' | |
coreml_model.save('catdogcoreml.mlmodel') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment