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

cannot find a way to encode image #22

Closed
rotem154154 opened this issue Sep 16, 2021 · 3 comments
Closed

cannot find a way to encode image #22

rotem154154 opened this issue Sep 16, 2021 · 3 comments

Comments

@rotem154154
Copy link

stylegan2 has (18,512) latent vector and mobileStyleGAN map (1,512) vector to (1,512) style.
i dont get it how can i encode the image to the (1,512) style that the model takes as input.
thanks for help

@bes-dev
Copy link
Owner

bes-dev commented Sep 16, 2021

@rotem154154 MobileSynthesisNetwork supports W+ space directly. Just throw Tensor with shape [batch_size, w_plus_size, latent_size] to the MobileSynthesisNetwork.

@rotem154154
Copy link
Author

@rotem154154 MobileSynthesisNetwork supports W+ space directly. Just throw Tensor with shape [batch_size, w_plus_size, latent_size] to the MobileSynthesisNetwork.

but i want to edit an image so the tensor of that shape come from encoder that takes an image as input

@bes-dev
Copy link
Owner

bes-dev commented Sep 17, 2021

@rotem154154 you can convert W to W+ like here

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