Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a updatable coreml model?

Tags:

coreml

I tried to build a pre-trained core-ml model with the help of create ML framework, but the model created is not updatable, Is there a way to create a pre-trained core-ml model which can be updated on the device itself (newly introduced feature in Core-ML 3) ?

like image 490
Nikhil Adwani Avatar asked Jul 24 '19 06:07

Nikhil Adwani


1 Answers

Not directly with Create ML, you'll have to use coremltools to make the model updatable. See here for examples: https://github.com/apple/coremltools/tree/main/examples

However... this will only work for neural networks and k-nearest neighbors models. Create ML does not actually produce these kinds of models (at the moment).

For example, an image classifier trained with Create ML is a GLM on top of a fixed neural network. You cannot make GLM models updatable at this point.

So in short, no, you can't make models trained with Create ML updatable.

like image 95
Matthijs Hollemans Avatar answered Oct 05 '22 17:10

Matthijs Hollemans