官术网_书友最值得收藏!

Converting your own model into a Core ML model

Convert your existing model into a Core ML model can be done through the coremltools Python package. If you want to convert a simple Caffe model to a Core ML model, it can be done with the following example:

import coremltools
my_coremlmodel =
coremltools.converters.caffe.convert('faces.caffemodel')
coremltools.utils.save_spec(my_coremlmodel, 'faces.mlmodel')

This conversion step varies between different models. You may need to add labels and input names, as well as the structure of the model.

主站蜘蛛池模板: 偏关县| 五峰| 林口县| 金门县| 同仁县| 太白县| 翼城县| 云龙县| 内乡县| 镶黄旗| 洪雅县| 涿州市| 怀安县| 凤翔县| 东兰县| 黄骅市| 资溪县| 黔西县| 洮南市| 云霄县| 商河县| 图们市| 黄冈市| 且末县| 漳浦县| 浦城县| 来凤县| 泌阳县| 宿州市| 安阳市| 双桥区| 镇巴县| 汽车| 霸州市| 青铜峡市| 左云县| 自贡市| 崇州市| 临武县| 海安县| 深水埗区|