Skip to content

Instantly share code, notes, and snippets.

@dimroc
Created August 28, 2018 22:35
Show Gist options
  • Save dimroc/19804611e576d75c1099cb32c07935fa to your computer and use it in GitHub Desktop.
Save dimroc/19804611e576d75c1099cb32c07935fa to your computer and use it in GitHub Desktop.
Simple barebones coremltools conversation to Keras
coreml_model = coremltools.converters.Keras.convert(
path,
input_names=['input_1'],
image_input_names=['input_1'],
output_names=['density_map'])
coreml_model.save("CrowdPredictor.mlmodel")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment