Git Product home page Git Product logo

aim_fas's Introduction

#This code is the implementation of the paper "Learning Meta Model for Zero- and Few-shot Face Anti-spoofing"

The image lists of the protocol OULU-ZF is included in the protocols folder, and the protocol Cross-ZF will come soon.

Env required: tensorflow >= 1.4.0, opencv >= 3.0.0, etc.

To run this code, you should first use PRNet or other tools to generate facical depth map as the labels of all living faces. The labels of all spoofing faces are a zero array with shape of [32, 32, 1].

Data structure: Each set of the train, val, and test sets contains fine-grained living and spoofing face types. For each fine-grained type, it contains several facial images and the corresponding facial box files and facial depth map images. The image, the facial box file, and the facial depth image should be end-with '_scene.jpg', '_scene.dat', and '_depth1D.jpg', respectively.

@article{qin2020learning, title={Learning meta model for zero-and few-shot face antispoofing}, author={Qin, Yunxiao and Zhao, Chenxu and Zhu, Xiangyu and Wang, Zezheng and Yu, Zitong and Fu, Tianyu and Zhou, Feng and Shi, Jingping and Lei, Zhen}, journal={Association for Advancement of Artificial Intelligence (AAAI)}, year={2020} }

aim_fas's People

Contributors

qyxqyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aim_fas's Issues

Questions about finetune

Thanks for code sharing!
I have some detail questions about finetune step in fairly comparison part. The discription in your paper is as follows:"To evaluate its 1-shot perfor- mance, we first finetune it on the support set of the 1-shot tasks and then evaluate it on the corresponding query set." and "We generate 100,000 training tasks on the train set and 100 (T = 100) testing tasks on the test set. "
So I want to know the finetune step in other methods (Resnet-10, FAS-DR, DTN) is jointly (use the testing tasks data in one time) or seperately(use one test task per time and repeat 100 times then compute an average)?

Can you share the output tensor names?

Thank for your share!
I want to convert saved model ( data-00000-of-00001, .index, .meta) to .pb file. Can you share the output tensor node names? In model.py file, it seems the mean value of several outputs is used as final predict result.

Test

Hello! How can I use this code to test it on a single image with a pre-trained model? It would help me in my dissertation

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.