rewriting icon indicating copy to clipboard operation
rewriting copied to clipboard

How to get v_*i

Open wtybest opened this issue 4 years ago • 1 comments
trafficstars

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.

wtybest avatar Dec 04 '20 08:12 wtybest

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.

davidbau avatar Dec 05 '20 19:12 davidbau