EPCR
The official code of <Consistency Regularization for Deep Face Anti-Spoofing>
Install / Use
/learn @clks-wzz/EPCRREADME
EPCR
A PyTorch implementation for the paper [Consistency Regularization for Deep Face Anti-Spoofing] by Zezheng Wang
Dependencies
If you don't have python 3.8 environment:
conda create -n EPCR python=3.8
conda activate EPCR
Then install the required packages:
pip install -r requirements.txt
Download OCIM datasets, preprocess and prepare the train/test list
Run
Run this command to train DG with TransFAS architecture and with normal protocols
bash configs/run_ocim_epcr_ssdg_transfas_cim-o.sh
Run this command to train DG with semi-supervised protocols of leave-one-out protocols.
bash configs/run_ocim_leave_one_om-i_c.sh
Run this command to train DG with semi-supervised protocols of intra-labeled protocols.
bash configs/run_ocim_semi_Intra_live0.2_spoof0.2.sh
Semi-Supervised protocols
https://pan.baidu.com/s/1prFW1NMRwtutpugaqlbr1Q code: pfix
Pretrained odels
https://pan.baidu.com/s/1qL9xUGOuAJbyP4ppXdy44A code: jdfk
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
