rcmalli / keras-vggface

VGGFace implementation with Keras Framework
MIT License
928 stars 417 forks source link

Align faces before feature generation and comparison? #32

Closed midaha closed 5 years ago

midaha commented 6 years ago

All, I'm experiencing very poor results when comparing images which have the face in different parts of the image (and perhaps different sizes), e.g. portrait photo vs a full-body photo.

I suspect that a face detection and alignment stage needs to be run. Does this need to match the specific alignment undertaken in the training stage? Are there pixel coordinates for the eyes to be placed? Presumably everyone is performing processing of this type before matching?

Any help is very much appreciated.

rcmalli commented 5 years ago

It will affect the final result. I suggest using the original paper's preprocessing steps.