- Age Estimation: https://github.com/yu4u/age-estimation-pytorch
- Face Anti-Spoofing: https://github.com/minivision-ai/Silent-Face-Anti-Spoofing
-
Install CMake, and
python -m pip install cmake boost
-
Custom deps
git clone https://github.com/hx-w/NaughtyFace cd NaughtyFace/ python -m pip install -r requirements.txt # python <= 3.9
-
Download model(age estimation) parameters from release, put pth file in
age_estimator/misc
python video_offline_detect.py -i <video_path> -s <sample_rate>
params
-
--inputs / -i
: local video path, only mp4 supported (for now). -
--sample_rate / -s
: video frames sample rate$\in [0.0, 1.0]$