-
-
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. |
Sorry for the delay.
|
Looking into the available At the moment Let me know if this looks correct. Expects BGR:
Expects RGB:
|
We are sending BGR to all models via model.forward We are not doing anything with RGB. |
I understand the image being sent to model.forward is always BGR format. I'm not suggesting changing the input for I'm talking about the case where the underlying model has been trained on RGB images and we are sending in BGR images. For instance, the I was just wondering if there were other cases, like You may have a specific reason why most of these models take in BGR images as input. I would like to understand the reasoning behind that decision, for my own personal curiosity. |
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