Git Product home page Git Product logo

s2pln's Introduction

S2PLN

The code repo for the paper "Learning a Spoof Pattern Generation Network with Identity Disentanglement for Semi-Supervised Cross-Domain Face Anti-Spoofing"

The network architecture of the proposed S2PLN method: S2PLN_framework.png

TODO

  • Release training and inference code.
  • Release pretrained models.

Congifuration Environment

  • python 3.7
  • pytorch 1.7.1
  • torchvision 0.8.2
  • cuda 11.0

Installation

To install the required packages, you can run pip install -r requirements.txt

Pre-processing

Dataset

Download the OULU-NPU(O), CASIA-FASD(C), Idiap Replay-Attack(I), MSU-MFSD(M), MS-Celeb- 1M and LFW datasets

Face Detection and Face Alignment

All video frames of the four datasets are pre-processed with the MTCNN algorithm to perform face detection and cropping, and the cropped RGB face images are resized to 224 ร— 224 ร— 3.

Label Generation

To generate the data label list, you can run the following command:

python datalabel/generate_label.py

Acknowledgments

We would like to express our gratitude to SSDG, which are of great help to our work.

s2pln's People

Contributors

ywj-github avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.