Skip to content

Instantly share code, notes, and snippets.

@cggonzal
Created February 2, 2019 20:34
Show Gist options
  • Save cggonzal/087c559b0340e46c2fa470316f0bb6b8 to your computer and use it in GitHub Desktop.
Save cggonzal/087c559b0340e46c2fa470316f0bb6b8 to your computer and use it in GitHub Desktop.
output_labels = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
your_model = coremltools.converters.keras.convert('your_model.h5', input_names=['image'], output_names=['output'],
class_labels=output_labels, image_input_names='image')
model.save('your_model_name.mlmodel')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment