Facial Recognition Tutorial


#1

I have written up a tutorial about using Siamese Networks for facial similarity learning. It is in a similar in style to Jeremy’s notebooks, and (hopefully) easy to understand.


(janpreet) #2

Hello,
I am working on a similar problem statement. I am trying to find similarity between images of newts(a type of amphibian). Given images to two newts, the output should tell whether the images have same Newt or different Newt. Do you think this is in line with this work??

If you could please help me with this.
Thank you!


#3

If the number of classes is very high/unstable , you can try siamese networks , it should work. There are more accurate versions of it too, that rank items using a triplet loss.


(janpreet) #4

Thanks for the reply. Yeah, I have read some papers using triplet images. But then, it was also mentioned that the networks are sensitive to the training triplets (i.e. training dataset), I don’t have the data set in form of triplets as of now. Just a question, do these networks have specific architecture for faces or I can use other types of images too??


#5

I have set up the tutorial in a way that any images,not just faces , can be used. There are two blog posts, and the code itself in GitHub.
If you just want to play with my code , just put each class of the newt in it’s own folder


(marc) #6

Interesting project. It would be interesting to see how well it’s doing in terms of accuracy compared to openface http://cmusatyalab.github.io/openface/models-and-accuracies/

Also, if I recall correctly the Facenet paper from Google mentions that selecting hard triplets is crucial to improve the model. It would make sense that your approach also suffers from that (in order to improve the model, extra attention should be put into selecting pairs of images that are hard to differentiate).


(Arijit) #7

@marcemile: I worked using openface. It does decent face recognition. But the issue with it is it affected by lighting condition. I also found installation very troublesome.