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

About LatentCodesPool in the code #34

Closed diaodeyi closed 3 years ago

diaodeyi commented 3 years ago

Hi, i want to know the purpose for the design of the LatentCodesPool. The reason for designing 50% to use the previous W code?

omertov commented 3 years ago

Hi @diaodeyi, Yes you are correct, this has been done in other GAN papers (e.g. CycleGAN) to include some memorization for the discriminator, and we thought it would be interesting to add it here as well.

Best, Omer