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

How to get v_*i #7

Open
wty-ustc opened this issue Dec 4, 2020 · 1 comment
Open

How to get v_*i #7

wty-ustc opened this issue Dec 4, 2020 · 1 comment

Comments

@wty-ustc
Copy link

wty-ustc commented Dec 4, 2020

In you paper,
image
I am confused how to get v_*i?
Through gan inversion optimization to find the v_*i correspond to x_*i?
I can't find in your code, so sorry to bother you.

@davidbau
Copy link
Owner

davidbau commented Dec 5, 2020

So the (k*, v*) correspondence comes from the "copy-paste" action.

See the function rewrite.ganrewrite.ProgressiveGanRewriter.paste_from_selection. The output variable goal_in corresponds to k* and the variable goal-out is v*. Note that goal_in is the context_model (layer "L-1") representation of the target context, like a building spire, and the goal_out is the target_model (layer "L") representation of the replacement pattern, like a tree that we want to put in place instead of building spires. Note that we can get both representations through just inference in the GAN: no GAN inversion is needed.

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