Skip to content

Instantly share code, notes, and snippets.

@islandjoe
Created June 4, 2018 17:13
Show Gist options
  • Save islandjoe/d0672cbbaab5b3778bfbc10c8d4e3ea8 to your computer and use it in GitHub Desktop.
Save islandjoe/d0672cbbaab5b3778bfbc10c8d4e3ea8 to your computer and use it in GitHub Desktop.
The minimum amount of code needed to perform a scene classification in CoreML.
let sceneModel = SceneClassifier()
if let prediction = try? sceneModel.prediction(sceneImage: image) {
	return prediction.sceneType
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment