RameenAbdal / StyleFlow

StyleFlow: Attribute-conditioned Exploration of StyleGAN-generated Images using Conditional Continuous Normalizing Flows (ACM TOG 2021)
http://rameenabdal.github.io/StyleFlow
2.43k stars 344 forks source link

what is "preserve_w_id" used for after z->w? #99

Open Racha1992 opened 3 years ago

Racha1992 commented 3 years ago

As I can see in your paper, w converted from (z, at) is the final latent for new image generating, but why function "preserve_w_id" is applied after z->w, before generatng image?

Racha1992 commented 3 years ago

Hi,I know what "preserve_w_id" is used for ,but how to choose channels among the 18 channels to preserve ?

RameenAbdal commented 2 years ago

In this paper, the channels are selected empirically based on the nature of edit to further fine grain it. A lighting edit would affect the later layers of the StyleGAN and so on. Now, there are some automatic methods as well to do so. Refer to the StyleCLIP paper https://github.com/orpatashnik/StyleCLIP