Pypi: https://pypi.python.org/pypi/coremltools
Github: https://github.com/apple/coremltools/releases/tag/0.7.0
Neural Networks
- Half precision weights
- New to .mlmodel specification version 2
- Supported by macOS 10.13.2, iOS 11.2, watchOS 4.2, tvOS 11.2
- WeightParams can now be specified in half precision (float16)
- New conversion utility function can convert existing models with neural networks to half precision: coremltools.utils.convert_neural_network_spec_weights_to_fp16
- Can also pass in a flag in keras or caffe converter functions during model conversion time to convert models to half precision
- See: https://developer.apple.com/documentation/coreml/reducing_the_size_of_your_core_ml_app
- Custom Layers
- New to .mlmodel specification version 2
- Supported by macOS 10.13.2, iOS 11.2, watchOS 4.2, tvOS 11.2
- Added CustomLayerParams message to possible layers
- NeuralNetworkBuilder has new add_custom method
- Keras converter has options for using custom layers. See add_custom_layers and custom_conversion_functions arguments
- See: https://developer.apple.com/documentation/coreml/core_ml_api/creating_a_custom_layer
Visualization
Visualize model specification with: coremltools.utils.visualize_spec
Python 3
- Converter python 3 support in place
- Prediction still has an open issue: https://github.com/apple/coremltools/issues/37
Misc
- Support grayscale image outputs in python predictions
- Bug fixes