如何在Xcode中导入和使用CreateML或CreateMLUI

jan*_*naz 4 swift coreml

我想使用new CreateMLCreateMLUISwift框架.

但是当我写道:

import CreateML
Run Code Online (Sandbox Code Playgroud)

Xcode给我一个错误:

没有这样的模块'CreateML'

我怎样才能在Xcode中使用它们?

jan*_*naz 10

要导入CoreML或CoreMLUI,您需要获取最新的软件:

  1. 转到https://developer.apple.com/download/
  2. 安装macOS Mojave 10.14 beta版.
  3. 安装Xcode 10 beta.
  4. 创建一个macOS平台模板.

如何创建自己的MLMODEL:https://developer.apple.com/documentation/create_ml/creating_an_image_classifier_model

使用apple提供的免费MLModel:https://developer.apple.com/machine-learning/run-a-model/


jfg*_*ang 7

你需要

  1. 安装了Mojave
  2. 安装Xcode 10 beta
  3. 创建一个macOS模板游乐场(不是iOS)