Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SeeFood-CoreML/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavig
func detect(image: CIImage) {

// Load the ML model through its generated class
guard let model = try? VNCoreMLModel(for: Inceptionv3().model) else {
guard let mlModel = try? Inceptionv3(configuration: .init()).model,
let model = try? VNCoreMLModel(for: mlModel) else {
fatalError("can't load ML model")
}

Expand Down