lia
lia copied to clipboard
Get the latent code of z/w space mapped using the encoder
Hi, thank you for this great work! @zhujiapeng
I would like to know if there is a straightforward way to get the latent code mapped from the real input image to the z/w space using the well-trained encoder, any insights would be highly appreciated!
You can refer to lines 80 and 81 in interpolate.py.
You can refer to lines 80 and 81 in
interpolate.py.
Thank you! I will take a look. :)
You can refer to lines 80 and 81 in
interpolate.py.
Hi @zhujiapeng , it turns out that getting the intermediate tensor output is not that straightforward (I am not that familiar with tensorflow1.X, which makes it quite difficult for me to amend the code), I would highly appreciate it if you could share a sample script for how to extract the intermediate latent code tensor as numpy arrays for instance.
Great thanks in advance!
Sorry, I am a little busy those days and do not have time to do this. But you could refer to interpolate.py scripts, lines 107 and 108 get the numpy outputs of latent z, and lines 138 and 139 get the numpy outputs of latent w.