-
Notifications
You must be signed in to change notification settings - Fork 71
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
Render npy not showing correct image #8
Comments
@miolamio: I guess you'd have to show me the code you're running. |
@rolux, I managed to render a correct image using this code here with slight modifications! All works, thank you for your support! |
Hi, could you please tell me how you did it? I encounter the same problem. |
It happens because optimization is not only latent but noises , when regularity of noises is small,some information is encoded in noises,the output image is produced by latent and noise, if you use only latent to generate image ,these two images are different |
@Pinnh I have a similar issue. The numpy file produced by Along with the latents, do I need to extract something else, or combine each slice in some way? I was expecting |
Thanks, that makes a bit more sense. However, I'm asking if the latents that represent that new image are available in |
You can get a 1x512 array The 18x512 array |
Thanks. How does one convert |
There is no built-in method to do so. It is an inverse problem. |
Okay, well thanks for your help 👍 |
For reference: https://github.com/minyoungg/pix2latent |
One thing that I want to mention is Latent can't encode every thing in StyleGAN, so when you do inverse optimization , there are also some distances between input image and image that generate by latent of StyleGAN, say faces' cosine similarity(CosSim), so when you use Latent and Noises to optimize the CosSim you can get even 99.5% closer to input but when you edit the latent to do the warp transform, you will find that the details are position invariant Ref paper: Image2StyleGAN++: How to Edit the Embedded Images |
Hi! Great work, thank you!
I was wondering if you could post an example of how to render an image from NPY file, I tried to load an image and generate it using Gs.run(latent1, None), but it seems I get another image as a result.
Thanks!
The text was updated successfully, but these errors were encountered: