开源软件名称(OpenSource Name):dinhquy94/face-antispoofing-using-mobileNet开源软件地址(OpenSource Url):https://github.com/dinhquy94/face-antispoofing-using-mobileNet开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):CNN for face-anti-spoofingThe face anti-spoofing is an technique that could prevent face-spoofing attack. For example, an intruder might use a photo of the legal user to "deceive" the face recognition system. Thus it is important to use the face anti-spoofint technique to enhance the security of the system.
All the face images listed below are in the dataset of CASIA-FASD Why MobileNet?MobileNet is an architecture which is more suitable for mobile and embedded based vision applications where there is lack of compute power. This architecture was proposed by Google. UsageMain Dependencies
Prepare DatasetCASIA-FASD datasets are consist of videos, each of which is made of 100 to 200 video frames. For each video, I captured 30 frames (with the same interval between each frame). Then, with the Haar_classifier, I was able to crop a person’s face from an image. These images make up training datasets and test datasets. Train and Test
Note: If you want to test that the model is pretrained and working properly, I've added some test images from different classes in directory 'data/'. All of them are classified correctly. Run
The file 'test.json' is just an example of a file. If you run it as is, it will test the model against the images in directory 'data/test_images'. You can create your own configuration file for training/testing. BenchmarkingIn my implementation, I have achieved approximately 1140 MFLOPS. The paper counts multiplication+addition as one unit. My result verifies the paper as roughly dividing 1140 by 2 is equal to 569 unit. To calculate the FLOPs in TensorFlow, make sure to set the batch size equal to 1, and execute the following line when the model is loaded into memory.
I've already implemented this function. It's called Updates
Test |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论