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

Questions about the Attention-based Generator #23

Closed
taylover-pei opened this issue Aug 24, 2018 · 1 comment
Closed

Questions about the Attention-based Generator #23

taylover-pei opened this issue Aug 24, 2018 · 1 comment

Comments

@taylover-pei
Copy link

Congratulations! You have done a great job.
But I have a question about the Attention-based Generator. This paper said that the generator outputs two masks, a color mask C and attention mask A. And you gave the following formula:
image
So, I'm wondering how did you come up with this formula? I mean, how do you explain this formula?
Looking forward to your apply.

@donydchen
Copy link

This is somehow a common trick when playing with attention map / attention mask. From my point of view,

  • Intuitively attention mask enables some specific areas where facial muscle changed to get more focus, applying it to the color mask () can generate images with clear dynamic area and unclear static area.
  • After that, what left is to enhance the static area, which should be similar between the generated image and the original real image. So we can enhance the static area (basically it refers to background area) in the original real image () and merge it to the above to get final result ().

You can understand it more clearly with the help of Sec. 4.1_Generator and Sec. 6.5 of the original paper.

However, the above is what the paper tells, while this project actually implements it in a different (or wrong?) way. You can check out Issue #21 for more details.

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

3 participants