- MiniFASNet github: https://github.com/minivision-ai/Silent-Face-Anti-Spoofing
- export 2.7_80x80_MiniFASNetV2 model
python3 export_onnx.py
- export 4_0_0_80x80_MiniFASNetV1SE model
python3 export_onnx.py --weights_file ./resources/anti_spoof_models/4_0_0_80x80_MiniFASNetV1SE.pth
mkdir build && cd build
cmake ..
make -j
./MiniFASNet_trt ../config.yaml ../samples
sample | result |
---|---|
0.jpg | fake |
1.jpg | fake |
2.jpg | real |
3.jpg | real |
4.jpg | fake |
5.jpg | fake |