项目作者: iamsims

项目描述 :
Face Recognition using Siamese Network implementation for smart door lock system
高级语言: Jupyter Notebook
项目地址: git://github.com/iamsims/FaceRecognition.git
创建时间: 2020-01-16T02:43:10Z
项目社区:https://github.com/iamsims/FaceRecognition

开源协议:

下载


A smart home automation tool for Locus 2020 by implementation of Siamese Model to recognize faces.

Installation

Cloning the repository For code:

  1. git clone https://github.com/simran347/FaceRecognition.git
  1. For Windows:

  • Download Python 3.7
  • Create the Virtual Environment:

    1. # Creating Virtual Env
    2. virtualenv -p PATH ENVIRONMENTNAME
    3. # Activating virtual env
    4. \path\to\env\Scripts\activate.bat
  • Install dependencies:

    1. pip install -r requirements.txt
  1. For Linux:

  • Install python 3.7

    1. sudo apt install python3.7-venv
  • Create the Virtual Environment

    1. # Creating Virtual Env
    2. python3.7 -m venv env37
    3. # Activating virtual env
    4. source env37/bin/activate
  • Install Dependencies:

    1. pip install -r requirements.txt

Run the program

  1. Run main file.
  2. Add contrastive loss if contrastive loss is not found in losses.py file:
  1. def contrastive_loss(y_true, y_pred):
  2. return K.mean(y_true * K.square(y_pred) + (1 - y_true) * K.square(K.maximum(margin - y_pred, 0)))