VinAIResearch / HyperInverter

HyperInverter: Improving StyleGAN Inversion via Hypernetwork (CVPR 2022)
https://di-mi-ta.github.io/HyperInverter/
BSD 3-Clause "New" or "Revised" License
116 stars 13 forks source link

girl have beard #4

Closed tengshaofeng closed 2 years ago

tengshaofeng commented 2 years ago

You really did a great job. Thanks for sharing. When test some image, I found when person become old, person will wear glass, some girl have beard. How to solve that? screenshot-20220616-104340 8b927126db85d175fb8cf6b69724579d

di-mi-ta commented 2 years ago

Hi, Thanks for your interest in our work! To answer the question, for age editing direction, we leverage from PTI repo. Specifically, the age editing direction learned by InterfaceGAN on StyleGAN2 trained on the FFHQ dataset often adds glass when editing face images toward old. About the entangle phenomenon for adding beard when editing face image more aged, this issue also appears when we only use W-Encoder without our phase II refinement. We assume that the current age edit direction does not work well with the latent code inveted by phase I pSp/e4e W encoder. To mitigate this problem, learning better age editing direction may help.

tengshaofeng commented 2 years ago

@di-mi-ta

Ok, Thanks for your advice. By the way, how can I learn a better age editing direction. I have two ideas below.

  1. Generate z randomly, and map to w, then synthesis the image given pretrained stylegan2 model from stylegan2-ada-pytorch, then label the image with smile/not smile , then learn the editing direction.

  2. Given many real-world images, then encode them to w given pSp encoder model. Then do as same as the first method.

Is it right? which is better?