Caffe is a deep learning framework that is commonly known for its [Model Zoo](https://caffe.berkeleyvision.org/model_zoo.html. The following example shows how to convert a Caffe model (AlexNet) to Core ML format (
Caffe Converter is in maintenance mode
Since Caffe is not in active development, new features such as MIL, Custom operators, etc. will not be added to the Caffe converter.
import coremltools as ct # Convert a Caffe model to a classifier in Core ML model = ct.converters.caffe.convert( ('bvlc_alexnet.caffemodel', 'deploy.prototxt'), predicted_feature_name='class_labels.txt' ) # Now save the model model.save('BVLCObjectClassifier.mlmodel')
Updated 5 months ago