AlfredXiangWu / face_verification_experiment

Original Caffe Version for LightCNN-9. Highly recommend to use PyTorch Version (https://github.com/AlfredXiangWu/LightCNN)
725 stars 327 forks source link

can't get the same result #156

Closed CLIsVeryOK closed 5 years ago

CLIsVeryOK commented 6 years ago

I tried the caffeModel in the folder in matlab, but I can't get discriminative face feature as folder results. I wonder if any preprocessing needed? I cropped the image in 128x128 and The distance between the midpoint of eyes and the midpoint of mouth are set to 48 pixels and the y axis of midpoint of eyes is set to 40. then use the 128x128 uint8 image as input. but the feature I get has a close cosine distance(>0.9) even the input are different people.

hshunghsu commented 6 years ago

hi CLIsVeryOK How to convert the image to the distance between the midpoint of eyes and the midpoint of mouth are set to 48 pixels and the y axis of midpoint of eyes is set to 40

it-jiao commented 5 years ago

Hello, CLIsVeryOK, @AlfredXiangWu have you solved the problem? I have the same problem with you.

AlfredXiangWu commented 5 years ago

I think the problem is normalization of input. You should normalize the image from [0, 255] to [0, 1].