Closed while-true-work closed 5 years ago
I resolved this issue...
1st, copy the file 'model_mobilefacenet.pth' into 'work_space/save/'
2nd, edit 'config.py', find the line
conf.use_mobilfacenet = False
change to
conf.use_mobilfacenet = True
That's all
Hi Did you change the filename from model_mobilefacenet.pth to model_final.pth?
Hi Did you change the filename from model_mobilefacenet.pth to model_final.pth?
The same issue... Did you resolved this issue? Thanks
Change the filename from model_mobilefacenet.pth to model_final.pth next error FileNotFoundError: [Errno 2] No such file or directory: 'data\facebank\facebank.pth'
Then python face_verify.py --update
@Ndron Hi, when I met the error No such file or directory: 'data/facebank/facebank.pth', I ran python face_verify.py --update, but 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/InsightFacePytorch/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
Change the filename from model_mobilefacenet.pth to model_final.pth next error FileNotFoundError: [Errno 2] No such file or directory: 'data\facebank\facebank.pth'
Then python face_verify.py --update
change the face_bank folder to facebank. that would work
Hi there,
When I issue "python face_verify.py" there will be the following error message:
My system info as follows:
How can I generate or get the file "model_final.pth" ?
Thanks