Closed zhoufengfan closed 2 years ago
You should check your input size first. Cosface takes the 112*96 image as input. 建议检查一下你所用的LFW图像尺寸。cosface的输入是112 X 96.
Could you provide the code to crop the faces in the LFW dataset or disclose the method to crop the faces in the LFW dataset?
Face detection and alignment are performed by MTCNN. For its Pytorch implement, please refer https://github.com/TropComplique/mtcnn-pytorch .
Yule-li has provided the preprocessed 112 X 96 lfw dataset. His / her project page is https://awesomeopensource.com/project/yule-li/CosFace. You may download the preprocessed data via Baidu disk here.
Thanks for your response.
Now, the issue has been fixed.
After I run
python lfw_eval.py
, there occurs this error: