Skip to content
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

is the model retinaface trained on RGB/BGR way? #15

Open
asdf1996 opened this issue Feb 24, 2022 · 3 comments
Open

is the model retinaface trained on RGB/BGR way? #15

asdf1996 opened this issue Feb 24, 2022 · 3 comments

Comments

@asdf1996
Copy link

Hi,
i'd like to know is the model retinaface trained on RGB or BGR? if i applied direct on RGB, will the precision changes a lot?
Thanks for reply!

@woctezuma
Copy link
Contributor

Related:

@asdf1996
Copy link
Author

@woctezuma Thanks for quick reply!
so in this repo,the model is trained on RGB without changing the network structure?
Can I apply the pretrained weights in this repo to facexlib?

@woctezuma
Copy link
Contributor

woctezuma commented Feb 24, 2022

It has been a long time, but I would say that, based on the issue linked above:

  • biubug6/Pytorch_Retinaface uses BGR,
  • ternaus/retinaface uses RGB.

Based on the README of xinntao/facexlib, the model comes from biubug6/Pytorch_Retinaface, so it should be BGR as well.

I believe that it would be better if:

  • you did not need to import the weights from ternaus/retinaface,
  • you could simply stick to the BGR convention when using xinntao/facexlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants