- LinkedIn: @TaoShen
- Kaggle Profile: @SeuTao
- Twitter: @SeuTao
- Email: [email protected]
seutao / facebagnet Goto Github PK
View Code? Open in Web Editor NEWFaceBagNet - Patch-based Methods for Multi-modal Face Anti-spoofing (FAS)
FaceBagNet - Patch-based Methods for Multi-modal Face Anti-spoofing (FAS)
你好,这部分代码没有吗?
如题,如果有发表文章的话,能否更新一下?谢谢
模型是利用有摩尔纹跟没有摩尔纹数据集进行训练,这是人为区分出来的.
如果不人为区分,有什么方法可以判断一张图片是否有摩尔纹,是否有什么指标判断摩尔纹程度?
The training input of the model is the whole face,
and the local patches are not reflected
Hi, sorry to bother you but I have a question about coverting the model(.pth) to .pt. I want to run my models on Android but none of them works, so I was wondering do you know how to run my trained models on edge applications?
train using CUDA_VISIBLE_DEVICES=0 python train_Fusion_CyclicLR.py --model=model_A --image_size=48
在定义FaceBagNet时,传参type=A/B/C,三种类型有证明哪种最优么?我看提供的预训练模型只是A的.
另外实际测试中,IR测试,如果图比较亮,则很容易判断为真,比如我对着白纸拍摄,根据rgb扣除人脸,但是测试结果却为真.
In line 86-88 of the process/data_fusion.py, it seems will select the patch of different modalities from different face regions.
I would like to ask is it designed on purpose? Why design it? I didn't see the relevant explanation in the paper.
请问您这个多模态都有哪几个模态呀?
你好, 我在train的代码中发现softmax_cross_entropy_criterion,请问这个是什么?网络上也没有搜索到这个的相关内容。
(CVPR19) (base) marco@pc:~/antiFaceSpoofing/CVPR19-Face-Anti-spoofing-master$
CUDA_VISIBLE_DEVICES=0 python3 train_Fusion_CyclicLR.py --model=model_A
--image_size=48
Namespace(batch_size=128, cycle_inter=50, cycle_num=10, image_mode='fusion',
image_size=48, mode='train', model='model_A', pretrained_model=None, train_fold_index=-1)
out_dir = ./models/model_A_fusion_48
<additional comments>
... xxx baseline ...
** dataset setting **
fold: -1
fusion
train
fold index set: -1
Traceback (most recent call last):
File "train_Fusion_CyclicLR.py", line 254, in <module>
main(config)
File "train_Fusion_CyclicLR.py", line 231, in main
run_train(config)
File "train_Fusion_CyclicLR.py", line 48, in run_train
fold_index=config.train_fold_index)
File "/home/marco/antiFaceSpoofing/CVPR19-Face-Anti-spoofing-master/process
/data_fusion.py", line 22, in __init__
self.set_mode(self.mode,self.fold_index)
File "/home/marco/antiFaceSpoofing/CVPR19-Face-Anti-spoofing-master/process
/data_fusion.py", line 41, in set_mode
self.train_list = load_train_list()
File "/home/marco/antiFaceSpoofing/CVPR19-Face-Anti-spoofing-master/process
/data_helper.py", line 13, in load_train_list
f = open(DATA_ROOT + '/train_list.txt')
FileNotFoundError: [Errno 2] No such file or directory: '/data1/shentao
/DATA/CVPR19_FaceAntiSpoofing/train_list.txt'
作者你好,感谢你的开源,但我在运行代码的时候遇到了如下问题,请问你可以给我一些指导吗?谢谢~
Traceback (most recent call last):
in getitem
image = cv2.resize(image,(RESIZE_SIZE,RESIZE_SIZE))
cv2.error: OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
改完一个error又出现一个error,这份代码能正常跑吗?
如题!!!
can not find ModuleNotFoundError: No module named 'model.backbone.senet' model
please
Hello hello!
Congrats on the outstanding project!!
I am trying to load the pretrained models provided but I run into the same shape mismatch error, always in keys encoder.last_linear.weight and encoder.last_linear.bias, no matter which .pth.tar I try to load (IR, depth or RGB; 32, 48 or 64).
The code:
bobo_A = Net()
path = "\model_A_color_64\checkpoint\global_min_acer_model.pth.tar"
bobo_A.load_pretrain(path)
Raises:
RuntimeError: Error(s) in loading state_dict for Net:
size mismatch for encoder.last_linear.weight: copying a param with shape torch.Size([1000, 2048]) from checkpoint, the shape in current model is torch.Size([2, 2048]).
size mismatch for encoder.last_linear.bias: copying a param with shape torch.Size([1000]) from checkpoint, the shape in current model is torch.Size([2]).
I am not being able to find a workaround. Any help?
Thanks!
您好,非常感谢你的项目给我很大的帮助,但是我用红外摄像机,红外图片检测出人脸后送入网络测试,不管是活体图片还是照片测试结果接近1,不知道是我的测试代码有问题,还是我的测试方法有问题。您能给出一些建议吗
How can I get a verification set?
Can you tell me the meaning of models that you experiment in this repo?
I can't find it on your paper.
你好,我看原论文中单IR 48*48的结果TPR@FPR 10E-4=98.6,但是我加载您的预训练模型测试的结果为ACER : 0.0110,TPR@FPR=10E-2 :0.9872,TPR@FPR=10E-2 :0.9872,TPR@FPR=10E-3 :0.8242,TPR@FPR=10E-4 :0.5246
@SeuTao @huangyuyu0426
您好,您在论文中提到的模式擦除是随机选取一个模式的特征置0,但是代码中的实现时让其变为随机噪声,这里是我理解的问题还是代码实现和论文写确实有出入呢?
when will you provide the pre-trained model corresponding to this paper?
您好,如题,如果有新发表文章的话,能否更新一下呢?谢谢。
嗨,想知道你们是否进行过单IR测试,具体的性能表现是怎样的?
Hi SeuTao,
I want to know meaning of 2nd place solution in Face Anti-spoofing Attack Detection Challenge @ CVPR2019
Because the challenge is still on going and there are no released results.
I want to find good solution for anti-spoofing so i want to know you got 2nd place or something in the challenge.
Thanks for your contribution
加入了正常IR双目摄像头采集的数据集,修改了数据增强方法,IR模态在测试集(CASIA_SURF+mydata)上 从85.8%提升到了97.9%.
执行train命令的时候,会出错:
ModuleNotFoundError: No module named 'data_helper'
Hello, can you post a link to the paper, thank you~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.