Skip to content

Code for IEEE TCSVT paper: Adaptive Face Recognition for Multi-Type Occlusions.

License

Notifications You must be signed in to change notification settings

LIU-YUXI/Adaptive-Multi-occlusion-Face-Recognition

Repository files navigation

Introdcution

Adaptive multi-occlusion face recognition (including face with mask, glasses and hat) model based on CLIP(openai/CLIP: CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image (github.com)), based on FaceX-Zoo(JDAI-CV/FaceX-Zoo: A PyTorch Toolbox for Face Recognition (github.com)) framework.

Requirements

  • python >= 3.7.1

  • pytorch >= 1.1.0

  • torchvision >= 0.3.0

See the detail requirements in requirements.txt

Model Training

run ./train.sh with the train dataset CASIA-Webface (baidu Pan Link).

Download teacher model (ElasticFace-Arc) from ElasticFace.

Download CLIP model (RN50x16) from CLIP.

Model Test

run ./test_lfw_adapt.sh with the test dataset LFW-MASK (baidu Pan Link), or the dataset MEGLSS(baidu Pan Link), CALFW-SUNGLASSES(baidu Pan Link), CPLFW(baidu Pan Link)

Simulate occlusion generation

You can generate a new simulated occluded dataset by running the python file mask_data_generation.py and changing the dataset path and occlusion image in the file.

About

Code for IEEE TCSVT paper: Adaptive Face Recognition for Multi-Type Occlusions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages