-
Notifications
You must be signed in to change notification settings - Fork 10
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
couldn't get the same embeddings from .pb and .dat #1
Comments
Hi @arunxz98 I am glad you find it useful. There are 3 main reasons for the differences in the embeddings generated using .dat and .pb
In order to see this yourself, you can create a small example for face recognition using dlib c++ toolkit. Run this example on windows and linux or osx or two different CPU architectures and you will see that the embeddings generated are different. Hope this helps. |
thankyou @ksachdeva |
Yes! I got the same output when I used the 'h5' model and 'pb' model to extract the features of a grope of pictures. It's quite useful. Thanks for @ksachdeva and Davis King ! |
First of all, thank you @ksachdeva for providing an excellent source for converting dlib_face_recognition_resnet_model_v1.dat to dlib_face_recognition_resnet_model_v1.pb.
i converted the model to .pb just like you mentioned. but when i tested both .dat and .pb by giving same image as input to both models, the embeddings i get from both the models are different. the preprocessing of the image for both model inputs are the same.
it would be very helpful if you could help me understand why it happens, and how to get same embeddings from both .dat and .pb.
thank you.
The text was updated successfully, but these errors were encountered: