omertov / encoder4editing

Official implementation of "Designing an Encoder for StyleGAN Image Manipulation" (SIGGRAPH 2021) https://arxiv.org/abs/2102.02766
MIT License
945 stars 154 forks source link

Some questions about Face Align in the code #79

Closed Zenobia7 closed 2 years ago

Zenobia7 commented 2 years ago

Is there a reference for face align used in the code? Is it convenient to provide it? Can this algorithm be used to align bust images? Looking forward to your reply

omertov commented 2 years ago

Hi @Zenobia7, Sorry for the long response time. The alignment code can be found here.

We basically follow the FFHQ alignment process used to train the faces StyleGAN so we can run the inversion and compute the losses.

Perhaps looking up the FFHQ alignment process would give you the answer you are looking for?

Best, Omer