Face Recognition using Siamese Network implementation for smart door lock system
Cloning the repository For code:
git clone https://github.com/simran347/FaceRecognition.git
Create the Virtual Environment:
# Creating Virtual Env
virtualenv -p PATH ENVIRONMENTNAME
# Activating virtual env
\path\to\env\Scripts\activate.bat
Install dependencies:
pip install -r requirements.txt
Install python 3.7
sudo apt install python3.7-venv
Create the Virtual Environment
# Creating Virtual Env
python3.7 -m venv env37
# Activating virtual env
source env37/bin/activate
Install Dependencies:
pip install -r requirements.txt
def contrastive_loss(y_true, y_pred):
return K.mean(y_true * K.square(y_pred) + (1 - y_true) * K.square(K.maximum(margin - y_pred, 0)))