facexlib icon indicating copy to clipboard operation
facexlib copied to clipboard

is the model retinaface trained on RGB/BGR way?

Open asdf1996 opened this issue 2 years ago • 3 comments

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!

asdf1996 avatar Feb 24 '22 12:02 asdf1996

Related:

  • https://github.com/ternaus/retinaface/issues/27

woctezuma avatar Feb 24 '22 13:02 woctezuma

@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?

asdf1996 avatar Feb 24 '22 13:02 asdf1996

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.

woctezuma avatar Feb 24 '22 15:02 woctezuma