fangyu1006 / face-antispoofing-ir

Face anti-spoofing based on IR-RGB images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

face-antispoofing-ir

This project is for face-antispoofing based on ir cameras.

Dataset

  • Prepare dataset (training, validation and test): real faces, spoof faces on printed paper and screens.

Train

  • Choose a backbone.
python train.py

Converter

  • keras h5 file to pb file
cd tools
python h5Topb.py
  • keras h5 file to tflite file
python h5Totflite.py

Test

cd test
python test_irspoofing_keras.py

About

Face anti-spoofing based on IR-RGB images.


Languages

Language:Python 100.0%