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

add more info regarding data model n its training #1

Open
askari01 opened this issue Sep 5, 2017 · 13 comments
Open

add more info regarding data model n its training #1

askari01 opened this issue Sep 5, 2017 · 13 comments

Comments

@askari01
Copy link

askari01 commented Sep 5, 2017

No description provided.

@steve21124
Copy link

yes. That's will be useful. So far, don't know how to train it

@askari01
Copy link
Author

askari01 commented Sep 6, 2017

I have an idea regarding the app, if you are willing we can discuss it.

@askari01
Copy link
Author

askari01 commented Sep 6, 2017

can you upload your trained model

@m-ruhl
Copy link
Contributor

m-ruhl commented Sep 6, 2017

A more in-depth instructions will follow.

Bear with me, I'm currently on vacation, so it may take some while.

@TheTiger13
Copy link

Hi @m-ruhl, Thanks for the latest sample on ARKit. I downloaded the project but faces_model.mlmodel file is missing. From where I can get this file?

@jagatfx
Copy link

jagatfx commented Sep 18, 2017

It is not the method from the author, but you can try following the instructions here (https://azure.microsoft.com/en-us/blog/custom-vision-service-introduces-classifier-export-starting-with-coreml-for-ios-11/) to use the Microsoft Custom Vision Service to export the model after training on images into the proper format expected by CoreML

@twhitt14
Copy link

twhitt14 commented Oct 3, 2017

@jagatfx Do you know how to download the model from azure's custom vision service? I don't see the option anywhere...

@katunch
Copy link

katunch commented Oct 17, 2017

@jagatfx check out the documentation here: https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/export-your-model
i did it so but I'm unable to import this model into xcode.

@jagatfx
Copy link

jagatfx commented Oct 18, 2017

@twhitt14 @katunch after you click the Train button there is an export tab that says "Choose your platform" and lists iOS 11 (CoreML) as the only export option. Click that one. Click the Export button. Click the Download button. This downloads a .mlmodel file. Rename the file faces_model.mlmodel. Drop the faces_model.mlmodel file into your XCode Project. Now it will run and use your mlmodel.

There are better ways to get a good mlmodel for faces, but at least this is a quick and free way to get something the is able to experiment with the app.

@MHX792
Copy link

MHX792 commented Dec 9, 2017

@jagatfx can you provide more information about how many photos are needed on average and what the confidence level should be? Tested it with ~10 photos of a pen and mouse and nothing happened.

@jagatfx
Copy link

jagatfx commented Dec 9, 2017

@MHX792 From the Microsoft docs they recommend 30 photos per tag. For more information on improving the classifier you can see this article.

Very few images are required to create a classifier -- 30 images per class is enough to start your prototype. The methods Custom Vision Service uses are robust to differences, which allows you to start prototyping with so little data.

Here is a great article from Microsoft on training the Custom Vision Service classifier.

If you just want to recognize various objects without worrying about the training process or model creation you can use the ResNet50 mlmodel listed in the apple docs.

As a last note for others, the Microsoft Custom Vision Service is not meant to be used to classify human faces. So if you want to train a model that can perform well at recognizing faces I would use a different approach. I just referenced as a way to quickly make your own classifier model that can work with this demo app.

@m-ruhl
Copy link
Contributor

m-ruhl commented Mar 14, 2018

The blog-post is finally here:
https://blog.novatec-gmbh.de/created-face-recognition-model/

Sorry for the delay ;-)

@askari01
Copy link
Author

thanks for the blog post, if everyone is cool I would like to close this thread.

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

8 participants