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
compute_mean_style
method generates gray image
#38
Comments
@RahulBhalley did you load pre-trained checkpoint? |
@bes-dev after running the following lines of code cfg = load_cfg("configs/mobile_stylegan_ffhq.json")
distiller = Distiller(cfg) I get the following output.
It looks like the checkpoints are loaded (for |
I tried using out = distiller.student(distiller.style_mean)['img'] |
Even truncation trick doesn't produce face image (but just gray). var = torch.randn(1, 512)
style = distiller.mapping_net(var)
style = distiller.style_mean + 0.5 * (style - distiller.style_mean)
out = distiller.student(style)['img'] |
@RahulBhalley our code doesn't load pre-trained student automatically, you should load it on your side. Please, look at this sample of code: MobileStyleGAN.pytorch/demo.py Line 14 in a9776ff
|
Hi @bes-dev,
In issue #36 you told me that
compute_mean_style
method can be used to compute latent average vector for MobileStyleGAN. But the image produced using this vector viastudent
network is all gray.I ran the following code to produce image using latent average vector.
I get the following average image as output.
Furthermore, every call to
compute_mean_style
returns a different vector. It's very weird. Shouldn't it be the same? Also largerbatch_size
doesn't make any difference. :(Output
I could be missing something. Please let me know what could be the issue on my side.
Regards
Rahul Bhalley
The text was updated successfully, but these errors were encountered: