Skip to content
All for Swift Playgrounds!. Use Create ML to Train Model and Core ML to recognize animal species in Swift Playground on iPad. 完全在 Swift Playgrounds 实现的工程!使用 Create ML 框架训练机器学习模型,Core ML 框架使用模型在 iOS Playground 环境中让 iPad 来识别动物种类!
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AnimalClassifier Demo.playground.zip
AnimalClassifier.mlmodel
AnimalClassifierModelCreator Demo.playground.zip
README.md

README.md

AnimalClassifier-Swift-Playground

  • Swift 4.2 All for Swift Playgrounds!. Use Create ML to Train Model and Core ML to recognize animal species in Swift Playground on iPad. 完全在 Swift Playgrounds 实现的工程!使用 Create ML 框架训练机器学习模型,Core ML 框架使用模型在 iOS Playground 环境中让 iPad 来识别动物种类!

Features

  • Create ML
  • Core ML

How to use Core ML in swift Playground

Playground don't recognize .mlmodel file by default, so we need a iOS Project to help us find the compiled mlmodelc folder, and copy the mlmodelc folder to playground's resourse folder, and the auto generated helper class to playground's sourse folder and change it to public. Then it works!

YouTube Link Here

https://youtu.be/jmUSfVf3ADg

You can’t perform that action at this time.