Facenet makes embedding vector and we compare between vectors to find a similar person
You can give a face iamge to web application, then web application shows someone who looks like face image
- install
# clone this repo git clone https://github.com/leejeongwoo1/facenet-web-project.git
check requirements.txt and install libraries(ex. facenet-pytorch, flask ...)
- include dataset:
Add face image at frontend/static/face_dataset to compare with client image
- make embedding vector (json) about face_dataset
Run embeddings.py to make json file which includes 512D embedding vector about dataset You can check json file at /model
- Run flask web application
set FLASK_APP=frontend flask run