genforce / idinvert

[ECCV 2020] In-Domain GAN Inversion for Real Image Editing
https://genforce.github.io/idinvert/
MIT License
461 stars 65 forks source link

About encoding result on random images #10

Closed pnbao closed 3 years ago

pnbao commented 4 years ago

Thank you for your great work!!

I have tested the model with some random images from internet, the encoding results and manipulation results is not really good as compared to other images included in your examples folders.

Screen Shot 2020-08-06 at 15 16 46 Screen Shot 2020-08-06 at 15 15 27

How can I improve the model for better encoding images like those?

For the interpolation, can we adjust the copied style range to interpolate coarse style, middle style and fine style? image

By the way, the model trained based on StyleGAN, so can the encoded latent can be fed into a StyleGAN generator?

ShenYujun commented 4 years ago

Faces should be pre-aligned before fed into the encoder. Please refer to this link.

Our encoder is based on a StyleGAN model trained on FF-HQ with 256 resolution. The official model is with 1024 resolution. So, they may mismatch. Furthermore, we use a StyleGAN generator that uses different ws for different layers. This is a little bit different from the original StyleGAN generator that uses the same w for all layers.