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 to train my own dlib_face_recognition_resnet_model_v1.dat #11

Open
74981 opened this issue Dec 27, 2018 · 16 comments
Open

How to train my own dlib_face_recognition_resnet_model_v1.dat #11

74981 opened this issue Dec 27, 2018 · 16 comments

Comments

@74981
Copy link

74981 commented Dec 27, 2018

How to train my own dlib_face_recognition_resnet_model_v1.dat. Please help and if possible share the python api for the same.

@nicolaerosia
Copy link

@davisking I'm also interested if you're willing to release the dataset. In any case, I understand that it involved a lot of work.

@davisking
Copy link
Owner

You can use the trillion faces or ms celeb datasets. They are already available and very large.

@pdstanley
Copy link

Davis, is there a python API for training your own model? Thank you, sir! Dlib is amazing.

@davisking
Copy link
Owner

No

@shenjackson
Copy link

@davisking , I don't know how to train my dlib_face_recognition_resnet_model_v1 model, can you give me some methods!

@davisking
Copy link
Owner

This example program goes into the details: http://dlib.net/dnn_metric_learning_on_images_ex.cpp.html

@csaftoiu
Copy link

@davisking Just to be sure, is that C++ code the one used to train this model? I'd like to transfer learn on my own dataset and want to be sure I'm starting from the right place

@csaftoiu
Copy link

Also we’re rhe input images aligned centered cropped etc or just resized to 150x150 with a crop from a face finding model? Also be helpful to know this just in terms of using the base model - I see the sample code that uses it does this so I presume it was trained that way As well

@davisking
Copy link
Owner

The notes on how this model was trained are in the example program that shows how to use it: http://dlib.net/dnn_face_recognition_ex.cpp.html

@csaftoiu
Copy link

csaftoiu commented Oct 31, 2019 via email

@davisking
Copy link
Owner

davisking commented Oct 31, 2019 via email

@csaftoiu
Copy link

csaftoiu commented Nov 1, 2019 via email

@davisking
Copy link
Owner

You could copy the layer parameters into a network with batch norm layers and go in and manually fill in the missing batch norm parameters with something reasonable.

@ismailpolas
Copy link

Does anyone build the dlib_face_recognition_resnet_model_v1.dat with custom dataset? If Yes, Please share the method. Thanks in Advance.

@davisking
Copy link
Owner

davisking commented Sep 9, 2020 via email

@aishaandatt
Copy link

I tried Loading a custom dataset and successfully made the resnet .dat file but I'm getting this error. ERROR: Unexpected version found while deserializing dlib::input_rgb_image_sized. Please refer to the issue link given below for more detials on this error.
davisking/dlib#2598

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