taotaonice / FaceShifter

Try to reproduce FaceShifter
250 stars 62 forks source link

RGB error in image reading function? #34

Open wvinzh opened 4 years ago

wvinzh commented 4 years ago

https://github.com/taotaonice/FaceShifter/blob/376b09e4ecc97848c07c585f173d10932880f961/utils/Dataset.py#L46

image->opencv->PIL,then the PIL image will be in BGR format, so the model will use this as input. This may influence the arcface feature.

ocastan commented 4 years ago

The original code for arcface do exactly the same thing See https://github.com/TreB1eN/InsightFace_Pytorch/blob/350ff7aa9c9db8d369d1932e14d2a4d11a3e9553/face_verify.py#L54

wvinzh commented 4 years ago

Thank you so much, I didn't notice that.

ocastan commented 3 years ago

But that's not the case for MTCNN code reused by arcface original code: face detection performance is not that good #44

syedasara-angelium commented 3 years ago

from where did you get the G_latest.pth, D_lastest.pth and model_ir_se50.pth files?