genforce / interfacegan

[CVPR 2020] Interpreting the Latent Space of GANs for Semantic Face Editing
https://genforce.github.io/interfacegan/
MIT License
1.51k stars 281 forks source link

About editing #99

Open JNash123 opened 2 years ago

JNash123 commented 2 years ago

I can get latent code by using encoder network to invert real image, and then put it into pre-train StyleGAN2, I can get reconstruction result. It works well. But I save this latent code as .npy and use : python edit.py -m stylegan_celebahq -b boundaries/stylegan_celebahq_eyeglasses_boundary.npy -i MY_LATENT_CODES_FILE.npy -o results/my_image -s wp

picture is strange, like this: 000_000

Jolllly-bot commented 2 years ago

Me too, did you find a working encoder? I wonder what differences cause this problem

ytz123456 commented 2 years ago

Hi @JNash123 , you can refer to #35 , the solution there works for me