-
Clone the Repo.
-
python3 -m pip install --user virtualenv (In Mac or Linux) python -m pip install --user virtualenv (In Windows)
[Make sure Python3 is installed in your system]
-
python3 -m venv env (In Mac or Linux) python -m venv env (In Windows)
-
source env/bin/activate (In Mac or Linux) .\env\Scripts\activate (In Windows)
-
pip3 install -r requirements.txt (In Mac or Linux) pip install -r requirements.txt (In Windows)
-
Download the FaceNet weight from here in the folder
model
. -
Place your 5 photos in the directory
Faces
by creating a folder with your name. -
Run
train.py
file
python3 train.py [For Mac/Linux]
python train.py [For Windows]
- Run
detect.py
file
python3 detect.py [For Mac/Linux]
python detect.py [For Windows]
- Happy Coding!