Demo of Face Recognition web service
Demo of Face Recognition web service.
$ docker build -t l4fimage .
$ docker run -d --name look4face -p 8000:8000 l4fimage
If you have CUDA installed, all calculations will be performed on the GPU, otherwise - on the CPU.
$ git clone https://github.com/sankovalev/Look4Face.git
$ virtualenv -p python3 Look4Face
$ cd Look4Face
$ source bin/activate
$ which python3
$ which pip3
$ pip3 install -r requirements.txt
$ cd Look4Face
$ python3 manage.py runserver
Repo | Link |
---|---|
face.evoLVe.PyTorch | https://github.com/ZhaoJ9014/face.evoLVe.PyTorch |
facenet_pytorch | https://github.com/liorshk/facenet_pytorch |
arcface-pytorch | https://github.com/ronghuaiyang/arcface-pytorch |
insightface | https://github.com/deepinsight/insightface |
sudo docker build -t l4fimage . |
I strongly recommend to use the face.evoLVe.PyTorch repository for train your own models.
Look4Face/dataset/your_db/
-> id1/
-> filename_1.jpg
-> ...
-> id2/
-> filename_1.jpg
-> ...
-> ...
-> ...
-> ...
and set variable in Look4Face/Look4Face/settings.py:
DATASET_FOLDER = 'your_db'
DATASET_INDEX = 'your_index.bin'
DATASET_LABELS = 'your_labels.pkl'
Look4Face/backbone/
-> your_backbone.pth
and set variable in Look4Face/Look4Face/settings.py:
BACKBONE_FILE = 'your_backbone.pth'
MIT