-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update representation.py #1427
base: master
Are you sure you want to change the base?
Update representation.py #1427
Conversation
Add explicit "color_face" argument.
I think we should change the skip case's behaviour, not default branch. All thresholds are tuned for default behaviour. |
I think that would depend on the expected Is the expected input to the model supposed to be RGB or BGR format? If |
The comments seem to suggest that |
Then, that comment should be fixed, too. That line was updated in this PR. I missed it. |
For clarification sake. It seems as though you are inferring that I ask because this is the opposite of my understanding. |
To be clear, I'm talking about the final state of |
BGR |
Thank you for the clarification. The changes have been reverted. |
Did you run the tests after your change? Seems tests are broken. |
Add explicit "color_face" argument.
Tickets
#1426
What has been done
With this PR I've added
color_face="bgr"
todetection.extract_faces
call.Previously: When using a
detector_backend
the final image sent to the model for embedding wasBGR"
format.Now: When using a
detector_backend
the final image sent to the model for embedding is"RGB"
format.How to test