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

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.

主站蜘蛛池模板: 神池县| 开江县| 昌吉市| 新昌县| 寻乌县| 绍兴市| 哈密市| 临夏市| 元谋县| 沙洋县| 阳城县| 江川县| 田东县| 阳江市| 右玉县| 巫山县| 武汉市| 海兴县| 南宁市| 新营市| 新密市| 新化县| 冕宁县| 融水| 开平市| 于田县| 澳门| 唐山市| 福泉市| 崇文区| 河曲县| 九台市| 湖州市| 临泉县| 清河县| 安阳县| 铜陵市| 怀集县| 民权县| 舒城县| 丰台区|