face-recognisation-by-transfer-learning


In this project, I have created a Face-Recognition model using the concept of Feature Tuning.

Step 1: We start of by collecting our dataset. For this, I have used Haarcascade FrontalFace. I have collected 200 images of mine & my friend for training the model & 100 images each for testing the model. You can use the following code to collect the images and prepare the dataset.

No alt text provided for this image

I have used the same block of code multiple times to collect all the training & testing images of me & my friend. You can collect images of more people as per your requirement. For more details check the code

Step 2: Now, we import pre-created MobileNet model from keras.applications. We freeze the already trained layers by layer.trainable= False.

No alt text provided for this image

Step 3:  We add layers as per our requirement. Here, I have used Softmax activation function.

No alt text provided for this image

Step 4: Next, we load our dataset. We have used the augmentation technique to increase our dataset since the size of original dataset is too small for a good accuracy.

No alt text provided for this image

Step 5: Now, we begin training our model.

No alt text provided for this image

The model has been effectively trained and ready to use. You can use this model for prediction.

In this model, I got 99% accuracy, because the data was very less.

Step 6: Now, I have loaded the created model for prediction, and predicted mine and my friend face.

No alt text provided for this image

The output of predicted model:

No alt text provided for this image

github link:https://github.com/Anuddeeph/FaceRecognisation-Mobilenet-.git

thanks to Vimal Daga sir, for guiding us.

#artificialintelligence #facedetection #mlops #project #python  #devops #github #vimaldaga #git


要查看或添加评论,请登录

Anudeep Nalla的更多文章

  • How to Read RAM Data?

    How to Read RAM Data?

    What is RAM and What data it contains? Random-access memory (RAM) is a computer’s short-term memory. None of your…

    2 条评论
  • Zenity: Red Hat Enterprise Linux 8.4

    Zenity: Red Hat Enterprise Linux 8.4

    What is Zenity? Zenity is an open source and a cross-platform application which displays GTK+ Dialog Boxes in…

    6 条评论
  • OSPF (Open Short Path First) Routing Protocol implemented using Dijkstra Algorithm

    OSPF (Open Short Path First) Routing Protocol implemented using Dijkstra Algorithm

    Routing Information Protocol (RIP) RIP stands for Routing Information Protocol. RIP is an intra-domain routing protocol…

  • K-means Clustering and its use case in the Security Domain

    K-means Clustering and its use case in the Security Domain

    Introduction K-Means Clustering is an Unsupervised Learning algorithm, which groups the unlabeled dataset into…

  • JavaScript Use cases

    JavaScript Use cases

    What is JavaScript? JavaScript is a light-weight object-oriented programming language that is used by several websites…

  • Case Study on How Industries are using MongoDB.

    Case Study on How Industries are using MongoDB.

    What is MongoDB? MongoDB is one of the most popular open-source NoSQL database written in C++. As of February 2015…

  • Confusion Matrix role in Cyber Security

    Confusion Matrix role in Cyber Security

    What is a Confusion Matrix? A Confusion matrix is the comparison summary of the predicted results and the actual…

    1 条评论
  • GUI container on the Docker

    GUI container on the Docker

    Task 2 Task Description a) GUI container on the Docker b) Launch a container on docker in GUI mode c) Run any GUI…

    3 条评论
  • Deployment of Machine Learning Model Inside Docker Container

    Deployment of Machine Learning Model Inside Docker Container

    What is Docker? A Docker container is an open-source software development platform. Its main benefit is to package…

  • Create a Menu Using Python integrating with Ansible, Docker, AWS, Ansible

    Create a Menu Using Python integrating with Ansible, Docker, AWS, Ansible

    A) Output for Local Machine B) Output for Remote Machine Code is in GitHub:

社区洞察

其他会员也浏览了