genforce / idinvert_pytorch

[ECCV 2020] In-Domain GAN Inversion for Real Image Editing (PyTorch code)
https://genforce.github.io/idinvert/
MIT License
407 stars 54 forks source link

How to get the layers of attributes for manipulation? #21

Closed falloncandra closed 3 years ago

falloncandra commented 3 years ago

Hi, thanks for your work!

In the colab example, we can manipulate attributes (age, eyeglasses, gender, pose, expression). We manipulate the attributes by adding values in the dimension of manipulate_layers. For instance, gender is manipulated using layer [2, 3, 4], while expression is manipulated using layer [2,3,4,5]. I wonder, how did you know that a certain attribute is associated with particular layers?

Thank you very much for your help!

zhujiapeng commented 3 years ago

https://github.com/genforce/idinvert/issues/12

falloncandra commented 3 years ago

Thanks for your answer!