【发布时间】:2019-12-27 21:40:39
【问题描述】:
我在这里有一个来自 turicreate 示例的声音分类模型: https://apple.github.io/turicreate/docs/userguide/sound_classifier/
我正在尝试将此模型分成两部分,并使用 coremltools 库将这两个部分保存为单独的 CoreML 模型。谁能指导我如何做到这一点?
我可以加载模型,甚至可以打印出模型的规格。但不知道从这里去哪里。
import coremltools
mlmodel = coremltools.models.MLModel('./EnvSceneClassification.mlmodel')
# Get spec from the model
spec = mlmodel.get_spec()
输出应该是两个 CoreML 模型,即上述模型分为两部分。
【问题讨论】:
标签: coreml coremltools