SoftwareGift / FeatherNets_Face-Anti-spoofing-Attack-Detection-Challenge-CVPR2019

Code for 3rd Place Solution in Face Anti-spoofing Attack Detection Challenge @ CVPR2019,model only 0.35M!!! 1.88ms(CPU)
Other
928 stars 282 forks source link

关于使用FeatherNetB训练出错 #23

Closed platoTao closed 5 years ago

platoTao commented 5 years ago

我使用命令行 python main.py --config="cfgs/FeatherNetB-32.yaml" --b 32 --lr 0.01 --every-decay 60 --fl-gamma 3 >> MobileLiteNetB-bs32--train.log 但是得到如下报错 Traceback (most recent call last): File "main.py", line 406, in main() File "main.py", line 113, in main model = models.dict[args.arch]() File "/home/plato/FeatherNets_Face-Anti-spoofing-Attack-Detection-Challenge-CVPR2019-regression/models/FeatherNet.py", line 161, in FeatherNetB model = FeatherNet(se = True,avgdown=True) File "/home/plato/FeatherNets_Face-Anti-spoofing-Attack-Detection-Challenge-CVPR2019-regression/models/FeatherNet.py", line 87, in init super(MobileLiteNet, self).init() NameError: name 'MobileLiteNet' is not defined

请问应该怎么修改?

platoTao commented 5 years ago

我把 super(MobileLiteNet, self).init() 修改为 super(FeatherNet, self).init() 可以成功运行。

363325971 commented 5 years ago

@platoTao 我从百度云上下的数据集中的Traing.tar文件解压后就是个单独的Training文件,,这个文件是要怎么读取训练呢?

platoTao commented 5 years ago

@363325971 把后缀改为rar格式,然后解压

smartwell commented 5 years ago

@platoTao 我从百度云上下的数据集中的Traing.tar文件解压后就是个单独的Training文件,,这个文件是要怎么读取训练呢?

你好,你能分享一下数据集吗,万分感谢,到处下不到数据

platoTao commented 5 years ago

@smartwell 把后缀改为rar格式,然后解压。

xjhjinhui commented 5 years ago

我把 super(MobileLiteNet, self).init() 修改为 super(FeatherNet, self).init() 可以成功运行。

您好,我按照您的方法改了以后发现 FileNotFoundError: [Errno 2] No such file or directory: '/home/tay/Videos/Anti-spoofing/FeatherNets/data/Training/real_part/CLKJ_BS0125/real.rssdk/depth/151.jpg' 这个错误,我查找了一下Traning文件夹发现确实没有这个文件,这个文件好像是作者的私有数据集下的,请问您是如何开始训练的呢?