-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to reproduce the result of verification from the analyzer using only the predictor from it? #38
Comments
Hi, I had a quick look at the code you provided and I think that the problem might be in the order of colors. Cv2 |
Thank you for your response. tensor(0.1691) result of analyzer Result of analyzer is different, because i have picked different photos. |
Alright, thanks for trying to change the order of colors. I have some additional questions that could help me say what the issue is: Which result makes more sense to you? Are the faces from the two images one person or different people? Do the images contain single cropped-out faces? What's the resolution of these images? |
FaceAnalyzer resizes the input images to 1080 x 1080 resolution using the ImageReader. The results might be different if your input image is much smaller, which might be true for cropped-out faces. Change the size of the ImageReader Resize transform in |
Hello, how did you write this config file? Could you please tell me about it? Thank you very much! |
You can use the merged config file or its GPU version located in the same directory. |
Hi! First of all, thank you for your work, it looks great.
I encountered some problems with reproducing results of face verification using it out of the pipeline that is implemented in the analyzer class.
The reason why I want to use only the predictor but not the whole pipeline is that I have already implemented the face detector and I want to verify faces between each other, so I don't need most of the functionality that is present in the analyzer.
And the problem is that scores of cosine similarity of output from the analyzer and single predictor are different, and it breaks the verification.
Here is the code that I use:
` test_img = cv2.imread('./database/17/17_01-00-399.jpg')
`
And as result i get
tensor(0.3768, device='cuda:0')
tensor(0.0573, device='cuda:0')
So predictor by itself doesn't work.
Thank you in advance.
The text was updated successfully, but these errors were encountered: