InsightFace_Pytorch icon indicating copy to clipboard operation
InsightFace_Pytorch copied to clipboard

No such file or directory: 'data/facebank/facebank.pth'

Open YueXiNPU opened this issue 6 years ago • 13 comments

When I try to run the 3.3, python infer_on_video.py. I encounter the above problem. Anyone can help me out?

YueXiNPU avatar Dec 09 '18 22:12 YueXiNPU

in the "face_verify.py" , you firstly should make the arg.update == true , then run this py , in the facebank you will see facebank.pth , after then , reset the arg.update == false , go on this code

ruiming46zrm avatar Dec 10 '18 02:12 ruiming46zrm

also you can check on this

TreB1eN avatar Dec 10 '18 08:12 TreB1eN

Thank you very much. I have solved it. Thanks

YueXiNPU avatar Dec 24 '18 01:12 YueXiNPU

@ruiming46zrm I got the same error while running "face_verify.py". I tried as you said still got the same error. can you help me to solve this!

Malathi15 avatar Aug 20 '19 09:08 Malathi15

This issue still exists. Can you please help me solve this. Moreover, @ruiming46zrm can you please elaborate on the method.

aayush1205 avatar Sep 28 '19 07:09 aayush1205

Thank you very much. I have solved it. Thanks

how do you solve it? @YueXiNPU

youthM avatar Oct 16 '19 08:10 youthM

in the "face_verify.py" , you firstly should make the arg.update == true , then run this py , in the facebank you will see facebank.pth , after then , reset the arg.update == false , go on this code

how do you solve it?

yiming-lzx avatar Nov 08 '19 08:11 yiming-lzx

add dafault=True #16 parser.add_argument("-u", "--update", help="whether perform update the facebank",action="store_true",default=True)

LiYangSir avatar Dec 18 '19 10:12 LiYangSir

Thank you very much. I have solved it. Thanks

could you share how do you solve this problem? I tried the method but it doesn't work, and one new problem occurs like this: File "/media/luminous/6400d1cb-edcd-4607-817b-1b69856b6144/jzf/InsightFace_Pytorch-master/mtcnn.py", line 92, in detect_faces keep = nms(bounding_boxes[:, 0:5], nms_thresholds[0]) TypeError: 'NoneType' object is not subscriptable

Jinzifeng avatar Dec 28 '19 13:12 Jinzifeng

@YueXiNPU @ruiming46zrm

Jinzifeng avatar Dec 28 '19 13:12 Jinzifeng

utils.py: #65 add str(): torch.save(embeddings, str(conf.facebank_path/'facebank.pth')) then: python face_verify.py --update

bixiwen avatar Mar 20 '20 05:03 bixiwen

@bixiwen Hi, when I met the error No such file or directory: 'data/facebank/facebank.pth', I ran python face_verify.py --update, I met another problem as follows. Do you know the reason? ir_se_50 model generated learner loaded Traceback (most recent call last): File "face_verify.py", line 36, in targets, names = prepare_facebank(conf, learner.model, mtcnn, tta = args.tta) File "/home/InsightFace_Pytorch/utils.py", line 49, in prepare_facebank img = mtcnn.align(img) File "/home/InsightFace_Pytorch/mtcnn.py", line 23, in align _, landmarks = self.detect_faces(img) File "/home/InsightFace_Pytorch/mtcnn.py", line 85, in detect_faces boxes = run_first_stage(image, self.pnet, scale=s, threshold=thresholds[0]) File "/home/InsightFace_Pytorch/mtcnn_pytorch/src/first_stage.py", line 35, in run_first_stage output = net(img) File "/home/anaconda2/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call result = self.forward(*input, **kwargs) File "/home/InsightFace_Pytorch/mtcnn_pytorch/src/get_nets.py", line 67, in forward x = self.features(x) File "/home/anaconda2/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call result = self.forward(*input, **kwargs) File "/home/anaconda2/envs/py36/lib/python3.6/site-packages/torch/nn/modules/container.py", line 91, in forward input = module(input) File "/home/anaconda2/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call result = self.forward(*input, **kwargs) File "/home/anaconda2/envs/py36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 301, in forward self.padding, self.dilation, self.groups) RuntimeError: CUDNN_STATUS_MAPPING_ERROR

WW2401 avatar Oct 14 '20 09:10 WW2401

Thank you very much. I have solved it. Thanks

Hi, how do you solve it?

WW2401 avatar Oct 16 '20 09:10 WW2401