Train pnet error
Opened this issue · 3 comments
CaptainEven commented
.\dface\core\models.py:9: UserWarning: nn.init.constant is now deprecated in favor of nn.init.constant_.
nn.init.constant(m.bias, 0.1)
Traceback (most recent call last):
File "g:/mtcnn/dface/train_net/train_p_net.py", line 92, in
use_cuda=args.use_cuda)
File "g:/mtcnn/dface/train_net/train_p_net.py", line 30, in train_net
use_cuda=use_cuda)
File ".\dface\train_net\train.py", line 92, in train_pnet
show1 = accuracy.data.tolist()[0]
TypeError: 'float' object is not subscriptable
lijie2160 commented
同样的问题,请问你的解决了吗?
qiantanzhijiao commented
Got it?
Dawnlnz commented
I had the same problem. Have you solved it?