Skip to content
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

Pixel-wise reconstruction loss #1

Closed
LiUzHiAn opened this issue Feb 11, 2022 · 4 comments
Closed

Pixel-wise reconstruction loss #1

LiUzHiAn opened this issue Feb 11, 2022 · 4 comments

Comments

@LiUzHiAn
Copy link

Hi, thanks for contributing this excellent work.

Could you please tell whether the L2 recon. loss is applied on \hat{x}_2 = G(w, F) for the real image case? I feel a bit confused about this point when reading the paper. Thanks in advance.

@Xu-Yao
Copy link
Contributor

Xu-Yao commented Feb 14, 2022

Hi, thanks for contributing this excellent work.

Could you please tell whether the L2 recon. loss is applied on \hat{x}_2 = G(w, F) for the real image case? I feel a bit confused about this point when reading the paper. Thanks in advance.

Hi, thank you for reading our paper.

For the real image case, the pixel-wise reconstruction loss is not applied. For StyleGAN2, when generating the synthetic image with the projected latent code, we can feed the ground truth noise to the generator, thus the encoder need to only focus on the information which should be encoded in the latent code. Whereas for real images, we do not have the ground truth noises, thus the pixel-wise loss may force the encoder to encode the information related to noise into the latent code.

@LiUzHiAn
Copy link
Author

LiUzHiAn commented Feb 14, 2022

Let me make some summarizations based on the paper and your informative reply:

  • For the real image case, the pixel-wise reconstruction loss is applied for neither \hat{x}_1 = G(w) nor \hat{x}_2 = G(w, F);
  • For the synthetic image, the pixel-wise reconstruction loss is only applied on \hat{x}_1 = G(w);
  • The remaining terms including LPIPS, feature reconstruction, and face inversion losses are applied both on \hat{x}_1 and \hat{x}_2, either for the real image or synthetic image.

If there is something wrong, please correct me. Thank you.

@Xu-Yao
Copy link
Contributor

Xu-Yao commented Feb 14, 2022

Let me make some summarizations based on the paper and your informative reply:

  • For the real image case, the pixel-wise reconstruction loss is applied for neither \hat{x}_1 = G(w) nor \hat{x}_2 = G(w, F);
  • For the synthetic image, the pixel-wise reconstruction loss is only applied on \hat{x}_1 = G(w);
  • The remaining terms including LPIPS, feature reconstruction, and face inversion losses are applied both on \hat{x}_1 and \hat{x}_2, either for the real image or synthetic image.

If there is something wrong, please correct me. Thank you.

Yes that's right.

@LiUzHiAn
Copy link
Author

Thank you. BTW, when will the source code be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants