The aim of this project was to build a Siamese network in order to verify faces.
The dataset that I used for this project was Labeled Faces in the Wild Home. I loaded this dataset from the Scikit-Learn Library. The dataset had 3 subsets for train, test, and validation.
- Shape of train set: (2200, 5828)
- Shape of test set: (1000, 5828)
- Shape of val set: (6000, 5828)
Because we have a pair of images in each sample, the shapes look like that. In fact, Image dimensions are
For better results, I decided to apply some changes in the number of subset data.
I implemented the Siamese network for this project. We have two parallel networks each of them gets one of the images and processes on them. After that, we pass the conclusion of the embedding network to the Euclidean function to calculate the distance between them.
So we have a right model and also a left model