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

If I can retrain the model of face_distance? #331

Open
Thiswang opened this issue Jan 30, 2018 · 10 comments
Open

If I can retrain the model of face_distance? #331

Thiswang opened this issue Jan 30, 2018 · 10 comments

Comments

@Thiswang
Copy link

  • face_recognition version:latest version
  • Python version:Python 2.7.14 :: Anaconda, Inc.
  • Operating System:macOS

I am using your code face_distance.py, The project is excellent!
But recently I found that some images compared from different person could get a very low "distance" score . so I thought if I can retrain this model . But I did not find the way to do it. Can you give me some informations about that?

@ageitgey
Copy link
Owner

You can retrain the model in theory, but it's very difficult since you need so much training data. The original model was trained on ~3 million faces and you'd need around that much data to re-train it. I'm trying to figure out a way to allow people to submit more data and provide re-trained models for everyone, but it's tricky.

@zhai1996
Copy link

zhai1996 commented Feb 1, 2018

The project is excellent! It is amazing and easy to use, but sometimes the code get the wrong result. There is A in the picture, but the picture in the window shows B's name. I am a Chinese,I am curios about how many yellow faces you trained totally, dose it works in Asian faces.

My English is not so good, I don't know if you understand what I am saying, thank you so much.

@ageitgey
Copy link
Owner

ageitgey commented Feb 1, 2018

I would love to build up a bigger training set that has a better mix of people from different parts of the world. But it is hard to find datasets with millions of pictures of people from different countries sorted by identity.

If anyone has access to that kind of data, please email me :)

@Thiswang
Copy link
Author

recently i found a big public dataset . you can take a look at it and wish it could help :-)
here is the url of Baidu SkyDrive : https://pan.baidu.com/s/1qZ6kM0O
the dataset is quite large

@navalchand
Copy link

navalchand commented Mar 12, 2018

please find above link https://www.kairos.com/blog/60-facial-recognition-databases which has access to more than 60 datasets ranging from 2D and 3D datasets.

Hopefully, it may help :)

@cftang0827
Copy link

How about using transfer learning? I guess the reason that people want to retrain the model is low accuracy due to different purpose of usage like specific racial. So how about using smaller and specific dataset to do transfer learning?

Though I am quite sure that whether dlib model can do transfer leaning.

If there’s any other idea, please share with us.

Thanks 🙏

@LilyDreamZhao
Copy link

+1

@vnlinh112
Copy link

@cftang0827 can we do transfer learning? is there any update on this topic?

@cftang0827
Copy link

I had done this before, I use my dataset and use face_recognition api to get the face vector. And then use the vector and center loss to train another model. However, I got a bad result, I think it maybe resulted from bad dataset but I am not so sure.

@siyangxie
Copy link

I had done this before, I use my dataset and use face_recognition api to get the face vector. And then use the vector and center loss to train another model. However, I got a bad result, I think it maybe resulted from bad dataset but I am not so sure.

What dataset did you use?

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