You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for publishing such a nice library!
But I am in a little bit trouble about h5 file.
I tried "nn4.small2.v1.h5", and using it I compared face images same as official demo.
As a result, the squared l2 distance between clapton1 and clapton2 is so small, 0.0360859, although two images are same persons.
That value between clapton-1 and lennon-2 is 0.0384319.
That value between clapton-2 and lennon-2 is 0.0224784.
On the other hand, the official demo values are here.
clapton-1 and clapton-2
0.318360479234912674
clapton-1 and lennon-2
1.447068150294569921
clapton-2 and lennon-2
1.520698983951225713
I think it may be wrong to write my code, how to calculate the distance.
Code to calculate the distance is here. Any problem?
This is almost little more than a year later than you asked.
Nevertheless, maybe the reason is that you haven't normalized the input image before computing the forward pass.
Try doing this before feeding the image to model.predict img = np.around(np.transpose(img, (0,1,2))/255.0, decimals=12)
You can refer the generate embeddings section here for more details.
I got similar results without normalizing the input
0.036086053
0.03843207
0.022478495
after normalizing the input I got
0.3701709
1.8563383
2.1030128
which is closer to the demo.
I used the model against my own dataset using MTCNN to align the faces and got an average of .8 for the same person and 1.4 for different people.
is that to be expected?
Thank you for publishing such a nice library!
But I am in a little bit trouble about h5 file.
I tried "nn4.small2.v1.h5", and using it I compared face images same as official demo.
As a result, the squared l2 distance between clapton1 and clapton2 is so small, 0.0360859, although two images are same persons.
That value between clapton-1 and lennon-2 is 0.0384319.
That value between clapton-2 and lennon-2 is 0.0224784.
On the other hand, the official demo values are here.
clapton-1 and clapton-2
clapton-1 and lennon-2
clapton-2 and lennon-2
I think it may be wrong to write my code, how to calculate the distance.
Code to calculate the distance is here. Any problem?
All code is here
https://github.com/osmszk/Keras-OpenFace-test/blob/master/Keras-Openface-test.ipynb
The text was updated successfully, but these errors were encountered: