pip install -U datasouls_antispoof
Colab notebook with the example:
ID & RD anti spoofing challenge
Four types of images:
- real
- replay
- printed
- mask2d
Example at datasoluls_antispoof/configs
Example:
export IMAGE_PATH=<path to the folder with images>
python -m torch.distributed.launch --nproc_per_node=<num_gpu> datasouls_antispoof/inference.py \
-i <path to images> \
-c <path to config> \
-w <path to weights> \
-o <output-path> \
--fp16
Models | Validation accuracy | Config file | Weights |
---|---|---|---|
swsl_resnext50_32x4d | 0.9673 | Link | Link |
tf_efficientnet_b3_ns | 0.9927 | Link | Link |