Skip to main content

Face Unlock

This project was done in my sophomore year at IvLabs to implement face-recognition algorithms from scratch, and further plan to deploy as face recognition based door lock. During this, we implemented Triplet Network and FaceNet algorithms with ResNet as the backbone architecture implemented from scratch and performed one-shot and few-shot learning on different datasets.
Created on December 7|Last edited on February 10

PDF Report View Slides View Slides




Triplet Network



Loss Function:
L=iN[f(xia)f(xip)22f(xia)f(xin)22+α]+L = \sum_i^N [\|f(x^a_i)-f(x^p_i)\|^2_2 - \|f(x^a_i)-f(x^n_i)\|^2_2 + \alpha]_+

where, xax^a = anchor image, xpx^p = positive sample, xnx^n = negative sample


Datasets

Sweeps


Sweep: vq62ojvw 1
15



Results


Run: Last Run
1



Run: Run_09-Dec 06:35
1

ArchitechtureEmbeddings
Dimension
No. of Learnable
Parameters
EpochsLearning RateBatch Size
ResNet-1812811,242,1762000.002
(Reduced by factor of 2 every 50 epochs)
256

AccuracyPrecisionRecallROC
Area Under Curve
Euclidean
Distance
TAR @ FAR=1e-2
88.35%88.46%88.23%0.95081.10461.07%



Project Outcome

  • Learned about the One-Shot learning approach on the various datasets.
  • Implemented Siamese Nets and FaceNet models using a ResNet backbone implemented from scratch.
  • Achieved 88.35% accuracy on the Labelled Faces in the Wild dataset.
  • Contributed to a dataset class for LFW in the Torchvision library.


References

BibTex

If you find this work useful please cite this report.
@misc{shaikh_2021,
title ={Face unlock},
url ={https://wandb.ai/abd1/Face-Unlock/reports/Face-Unlock--VmlldzoxMzEyNjQ4},
journal ={W&B Report},
author ={Shaikh, Muhammed Abdullah},
year ={2021}, month={Dec}
}