insightface icon indicating copy to clipboard operation
insightface copied to clipboard

color mode in face parsing module

Open archershot opened this issue 1 year ago • 1 comments

I notice that the normailize parameters "mean=[0.485, 0.456, 0.406],std=[0.229, 0.224, 0.225]" should be apply on PIL color mode (RGB). While in 'dataset', i found that images are loaded with Opencv color model(BGR). After i test both loading mode with pretrained weights, RGB mode performs as well as BGR mode. So, which mode should i choose?

archershot avatar Apr 02 '23 04:04 archershot

I think it's BGR input according to the code.

nttstar avatar Apr 02 '23 06:04 nttstar