-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the encoder #29
Comments
Yes. DualStyleGAN/style_transfer.py Lines 103 to 104 in 64285b1
And then here set DualStyleGAN/style_transfer.py Lines 126 to 127 in 64285b1
|
Thank you for the quick reply. As I understand when use_res is set to True the generator should return the reconstructed. I did this and the image returned from generator is very different from the encoded one. What might be the reason? |
You should use False to only use the intrinsic path to reconstruct the image DualStyleGAN/model/dualstylegan.py Line 97 in 64285b1
|
You need to set DualStyleGAN/style_transfer.py Lines 126 to 127 in 64285b1
|
If you use
DualStyleGAN should act the same as StyleGAN
Have you tried directly using StyleGAN (generator.generator) with Another possible reason is that your encoder might optimize both the latent input and the nosie input. |
It worked. Thank you! |
What encoder did you change and did it work well? |
hi ,what did you do to make it work |
@Karllas hi ,what did you do to make it work? |
Can you talk about how to modify the code, it is not easy to understand here? |
I have added wplus encoder. If you use a new encoder, that returns an optimized style code
for precise reconstruction. |
如果你使用一个新的编码器,返回一个优化的样式代码instyle1和一个优化的噪声noise1,你需要使用 img_gen, _ = generator([instyle1], None, input_is_latent=True, z_plus_latent=False, noise=noise1, randomize_noise=False, |
This issue's title is "Changing the encoder" And in the first pose, you can find the new encoder link
|
@williamyang1991 你的意思是将psp编码器换成上述两个编码器中的一个吗 |
Because you post questions under this issue |
Hello. Is it possible to swap the encoder with some different encoder like ReStyle (https://github.com/yuval-alaluf/restyle-encoder) or Hyperstyle (https://github.com/yuval-alaluf/hyperstyle) for more accurate reconstruction of the face?
The text was updated successfully, but these errors were encountered: