Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import and use CreateML or CreateMLUI in Xcode

Tags:

swift

coreml

I would like to use the new CreateML and CreateMLUI Swift frameworks.

But when I write:

import CreateML

Xcode gives me an error:

No such module 'CreateML'

How can I use those in Xcode?

like image 252
janaz Avatar asked Jun 05 '18 22:06

janaz


2 Answers

To import CoreML or CoreMLUI you need to get latest software:

  1. Go to https://developer.apple.com/download/
  2. Install macOS Mojave 10.14 beta version.
  3. Install Xcode 10 beta.
  4. Create a macOS platform template.

HOW TO CREATE YOUR OWN MLMODEL: https://developer.apple.com/documentation/create_ml/creating_an_image_classifier_model

Use free MLModels provided by apple: https://developer.apple.com/machine-learning/run-a-model/

like image 193
janaz Avatar answered Oct 25 '22 20:10

janaz


You need to

  1. Have Mojave installed
  2. Install Xcode 10 beta
  3. Create a macOS template playground (not iOS)
like image 28
jfgrang Avatar answered Oct 25 '22 20:10

jfgrang