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 return latents from MobileStyleGAN like those in StyleGAN2? #40

Closed
RahulBhalley opened this issue Jun 21, 2022 · 4 comments
Closed

Comments

@RahulBhalley
Copy link

Hello @bes-dev,

How can I return latents from MobileStyleGAN just like StyleGAN2 does here as following:

if return_latents:
    return image, latent

How can I get the latent variable similar to this in StyleGAN2? Looks like there's some manipulation involved.

@bes-dev
Copy link
Owner

bes-dev commented Jun 21, 2022

@RahulBhalley

style = self.mapping_net(var)

@RahulBhalley
Copy link
Author

RahulBhalley commented Jun 21, 2022

Hmm, I used these but the reconstruction results of ReStyle encoder started to become same for any face at around 12k iterations.

Could it have to do anything with the internal manipulation of latent before returning them as in StyleGAN2? Or have I misunderstood something?

@bes-dev
Copy link
Owner

bes-dev commented Jun 21, 2022

We didn't test our model with ReStyle

@RahulBhalley
Copy link
Author

No problem, I solved the problem. 🙂

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

2 participants