Closed federicoromeo closed 1 year ago
You can edit latents in W+ even if the learned direction was in W. The direction will simply be applied to all 18 vectors of W+. You can find some editing code / directions in the ReStyle repo: https://github.com/yuval-alaluf/restyle-encoder#editing Integrating pSp with that code should be easy since its built on the same code.
(3,256,256)
obtaining a latent vector of shape(18,512)
celebahq
labelled dataset, i want to find the latent editing directions for some the annotated attributes. In particular i'll use an svm to extract a binary decision boundary. The shape of the decision boundary will correctly be the same as the encoding,(18,512)
edited_vector = sampled_vector + k * latent_direction
and later decode it to retrieve the final edited imageThe issue is that to generate (=decode) an image i should pass to the psp network a vector of shape
(1,512)
, but the encoded latent vector is of shape(18,512)
. How can i decode an image starting from this shape?PS: I think the problem is about the various latent spaces of StyleGANs, z w or w+. is the space
(1,512) = w
and(18,512) = w+
?