StyleCLIP icon indicating copy to clipboard operation
StyleCLIP copied to clipboard

how to convert latent edited to (18, 512)?

Open molo32 opened this issue 4 years ago • 3 comments

After optimizing a latent with text, how do I save that latent in (18, 512) mode?

molo32 avatar Jun 27 '21 16:06 molo32

Hi @molo32 , Which method did you use?

orpatashnik avatar Aug 12 '21 19:08 orpatashnik

First I use a latent of e4e is (18,512), I import the latent to the global_directions colab. then after editing that latent with text, how do I return to (18,512) the latent edited?

molo32 avatar Aug 13 '21 02:08 molo32

The (18, 512) latent code is in W+ space, the manipulation for global direction method is in S space. The w+ code is first translate to s space then do manipulation. The resulting code is in s space.

Unfortunately, there is not an accurate way to convert s code back to w+ space. I am not sure if this is possible.

Why you need the (18,512) edited w+ code? Maybe use the edited s code instead?

betterze avatar Aug 13 '21 10:08 betterze