Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How CoreML is working in the sample? #5

Closed
hemangshah opened this issue Jun 28, 2017 · 8 comments
Closed

How CoreML is working in the sample? #5

hemangshah opened this issue Jun 28, 2017 · 8 comments

Comments

@hemangshah
Copy link

hemangshah commented Jun 28, 2017

I am seeing "Inceptionv3.mlmodel" file inside the "CoreML" group. I am sure that the answers are coming from that 91mb mlmodel file.

Few questions:

  1. Where did you get this file?
  2. Is this the dependency for this task? I mean, if we don't have this file, we couldn't do this?
  3. Why we need CoreML framework to work with this file?

P.S. Here this file means, mlmodel file.

@hemangshah hemangshah changed the title How CoreML is working in the sample How CoreML is working in the sample? Jun 28, 2017
@artemnovichkov
Copy link
Owner

Step by step:

  1. Apple provides several popular, open source models that are already in .mlmodel format, you can find it here. There is Core ML Tools, a python package, converting models from machine learning toolboxes into the Core ML format (more information here)
  2. Yes, this file contains trained ML model, and you can make no predictions without the model.
  3. You can use Vision framework as well. It works with internal system and custom app models.

@hemangshah
Copy link
Author

Thanks! 💯

@hemangshah
Copy link
Author

So how CoreML framework would work with this mlmodels?

@hemangshah hemangshah reopened this Jun 28, 2017
@artemnovichkov
Copy link
Owner

Xcode generates special class with input and output format. You can see it if you click on .mlmodel in Xcode:
screen shot 2017-06-28 at 16 10 12
All you need to do in the app is initiate model class and call prediction(input:) function.

@hemangshah
Copy link
Author

That class has only 70 lines of code and the thing is I am not getting how exactly a CoreML work with that mlmodel to understand an object?

@artemnovichkov
Copy link
Owner

Do you want to now how trained model predicts any output or how Core ML use .mlmodel file?

@hemangshah
Copy link
Author

How CoreML use .mlmodel file? Yes, I can see the generated source code, but what is the internal work of CoreML framework?

@artemnovichkov
Copy link
Owner

I guess, Core ML in depth WWDC session will help you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants