kingreza / SeeFood

Inspired by HBO's Silicon Valley: SeeFood is an iOS app that uses CoreML to detect various dishes

Home Page:http://www.reza.codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of unresolved identifier 'food'

hssdx opened this issue · comments

commented

In ViewController.swift line: 74

compiler error:Use of unresolved identifier 'food'

You need to download and import the food model. It's too big to be included in the repo. For more info read through this http://reza.codes/2017-07-29/how-to-train-your-own-dataset-for-coreml/#integrate

When i do import the food model to xcode 9 beta 5, the same error remains in ViewController.swif line 74. Any tips?. The model is there, but not work.

I rebuilt the project using beta 5 using the model here: https://s3.amazonaws.com/pixpit/coreml/food.mlmodel
It works on my end, go through the steps highlighted in the post above.

commented

@kingreza Thank for you answer, I solved it, because my xcode9 does not automatically import the food.mlmodel

commented

XCode 9 needs to manually linke mlmodel after dragging to Project.

@hssdx how "manually linke" mlmodel in xcode9? 🤔 Only drag and drop isn't solve?

commented

@douglastaquary yep, I don't know why, maybe my xcode has broken. Finally I drag it to TARGETS - Build Phases - Compile Sources it worked.
I guess this is a xcode9's bug.