Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to explore 18x512 dimensional style vectors #72

Open
wmpauli opened this issue Sep 18, 2023 · 0 comments
Open

How to explore 18x512 dimensional style vectors #72

wmpauli opened this issue Sep 18, 2023 · 0 comments

Comments

@wmpauli
Copy link

wmpauli commented Sep 18, 2023

Hi @harskish , thank you for sharing your work. I have read you paper and have been debugging your code and there is one question I'll like to get some clarity on.

I have been working with the stylegan2, using what is sometimes referred to as w+ latent space (Abdal et al., 2020). That is, the style vector is 18x512 dimensions, with a different style vector for each generator block.

If I understand your code correctly, it uses 1x512 style vectors. If necessary, they are repeated, as e.g. here:

https://github.com/harskish/ganspace/blob/5a704c488ce9bd36d892c34ff78e4986f2850758/notebooks/notebook_utils.py#L87

I do see code in your repository, where there is a check on the length of the style vector, for one global vector, style mixing, and the 18 style vectors.

https://github.com/harskish/ganspace/blob/5a704c488ce9bd36d892c34ff78e4986f2850758/models/wrappers.py#L202

However, I don't see a way of configuring the scripts (e.g. interactive.py) such that they would sample a 18x512 style vector.

Unless I'm missing something and this can be done. Is the reasoning behind this that running a PCA on a 18*512 dimensional vector didn't produce stable results?

The reason I'm asking is because I have fine-tuned a stylegan2, such that it uses "w+" style vectors, but I don't see a way to use your approach to investigate it. Any suggestions welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant