New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compare 2 images #16
Comments
Currently there is no utility like that. It wouldn't be too much work to modify for example "validate_on_lfw" to take two jpeg images instead, but that would assume that the images has already been face-aligned. A nicer solution would be to integrate face alignment, for example from openface, but that would be some more work. But definitly worth doing! |
Thanks On Tue, May 17, 2016 at 6:26 AM, David Sandberg notifications@github.com
|
I modify validate_on_lfw.py for comparing 2 aligned face images and have I expect emb1 should be one dim array with size 128. But emb1.shape shows Thanks, On Tue, May 17, 2016 at 8:51 AM, kaishi Jeng kaishi.jeng@gmail.com wrote:
|
I guess you have changed the batch_size to 2? If that is the case you should be able to get a tensor with the two embeddings of size 2x128 (if i remember correctly). And then you can just compute the l2 distance between the embeddings. |
I change batch_size to 1 so that I can compute emb for each image. FC On Fri, May 20, 2016 at 1:59 AM, David Sandberg notifications@github.com
|
If I set batch_size =2, then dim of return from sess.run becomes 18x128. FC On Fri, May 20, 2016 at 2:06 AM, kaishi Jeng kaishi.jeng@gmail.com wrote:
|
Hi again, |
My aligned face image size is 144. If I redo face alignment to size 96, the On Fri, May 20, 2016 at 1:25 PM, David Sandberg notifications@github.com
|
Ok, that makes more sense. The function that generates the inference graph only works for input images of size 96. The key is the line |
Thanks for compare.py utility. Traceback (most recent call last): |
No, there's a new model that is equivalent that you could download from |
It works OK with new model Thanks On Sun, May 22, 2016 at 1:15 PM, David Sandberg notifications@github.com
|
@kaishijeng Have you do it successfully? |
Do you have a similar utility to compare two jpeg face images and determine whether both are the same person or not, like compare.py in openface?
Thanks,
The text was updated successfully, but these errors were encountered: