Face Recognition with Transfer Learning

Transfer Learning: Transfer learning is a machine learning model developed for a task that is reused as a starting point for a different task. We can give a new dataset to fine-tune the pre-trained CNN. If the new dataset is small, it's better to add some layers before the output layer at the end and retrain new layers.

Face Recognition: It's a technology to identify/verify a person from a digital image or video.

In this project work, I used the concept of transfer learning with the VGG16 pre-trained model for face recognition of the trained faces. In this small model, I have used only 2 classes of face for training. One is my own face and the other is Bollywood star, Hrithik Roshan. For this, I provided some training to VGG16 (pre-trained model) with 'imagenet' images.

Here are some project details:

  • Import VGG 16 model with dataset.
No alt text provided for this image
  • Freeze the pre-trained layers.
No alt text provided for this image
  • Add and train new layers.
No alt text provided for this image
No alt text provided for this image
  • Fit the model and got an accuracy of around 96%.
No alt text provided for this image
  • Finally, test the model.
No alt text provided for this image
  • Found major weight for the first value in the array that is the correct result.

To view or add a comment, sign in

More articles by Rishabh Khandelwal

  • Integration of Ansible with Docker

    ❗ Ansible Task 1❗ Task: Write an ansible playbook to configure webserver using docker as follows: 🔹 Configure Docker…

    8 Comments
  • ReplicaSet by Terraform in Kubernetes

    Kubernetes: Kubernetes (K8s) is an open-source automating deployment, scaling, and management of containerized…

  • Creating Infrastructure in AWS cloud using Terraform Hashicorp Language.

    Terraform is an open-source infrastructure as code software tool created by HashiCorp. It enables users to define and…

    6 Comments
  • Integration of ML with DevOps.

    Machine Learning is the trend in the present world and inside machine learning, there is Deep Learning there we use the…

    2 Comments

Explore content categories