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

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.

主站蜘蛛池模板: 东山县| 闵行区| 广元市| 视频| 儋州市| 昌黎县| 剑阁县| 时尚| 奉新县| 张掖市| 南皮县| 郁南县| 巩留县| 柳林县| 永修县| 亚东县| 海兴县| 江山市| 鹤峰县| 松桃| 丹江口市| 高要市| 渝北区| 赤水市| 冕宁县| 泸西县| 娱乐| 湖州市| 桐城市| 迁安市| 库车县| 措勤县| 梧州市| 侯马市| 贵德县| 凉城县| 积石山| 两当县| 巴塘县| 依兰县| 泾川县|