Towards the solving anti-spoofing problem on RGB only data. Inference model to mobile app for real time testing.
Todo...
- Python 3.6.15
- Torch 1.9
- scikit-image 0.17.2
- opencv-python 4.1.2.30
- Albumentations 1.0.0
- Pillow 8.4.0
- Create a virtual environment:
cd light-weight-face-anti-spoofing/
bash init_venv.sh
- Activate the virtual environment:
. venv/bin/activate
Run on video (multi_models)
python api_end2end.py
Todo: add logic with multi frames ...
- Model MobileNet (Original_code :github):
- Edit path folder images and path at file train_turning.py. Path '.csv' have format 0: spoof, 1: live
cd light-weight-face-anti-spoofing/
create path: python creat_path.py
training: python train_tuning.py --config=./configs/config.py
- Model FASNet (Original_code: github):
- Install env from Original_code: github
cd Silent-Face-Anti-Spoofing/
edit at file config ./src/default_config.py
python train_tuning.py
Todo...
Open source for Android platform deployment code:...