Unable to replicate results from using torch.hub

username: hij
cooked: <p>I am trying to generate celeb faces using pretrained PGAN from torch.hub, however I cant seem to get decent images at all. I am unsure what I am doing wrong. Here is what I did</p>
<pre><code class="lang-auto">import torch
hub_model = torch.hub.load(
    'facebookresearch/pytorch_gan_zoo:master',
    'PGAN', #
    config = None,
    useGPU = True,
    pretrained=True)

inputRandom, randomLabels = hub_model.buildNoiseData(16)
im = hub_model.test(inputRandom,
           getAvG=True,
           toCPU=True)
</code></pre>
<p>The images I get dont look as great as the ones shown on <a href="https://github.com/facebookresearch/pytorch_GAN_zoo" rel="noopener nofollow ugc">https://github.com/facebookresearch/pytorch_GAN_zoo</a>.<br>
This is the image i generated<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/8/7/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/8/7/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf_2_690x481.jpeg" alt="image" data-base62-sha1="jjDCCmJ5fEoiQAutyDWQvqFGSGb" width="690" height="481" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/8/7/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf_2_690x481.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/8/7/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf_2_1035x721.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/8/7/8761a0737ded73ce85f35f69aa5ccaaae4d1bacf_2_1380x962.jpeg 2x" data-dominant-color="DCD6D3"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1570×1096 191 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
Are the images there just cherry picked or am I doing something wrong?</p>

username: ptrblck
cooked: <p>Did you try to generate a few more faces?<br>
The last one looks quite good and some faces in the repo docs look also quite weird, so you might just have gotten some randomly bad results.</p>

username: hij
cooked: <p>These are randomly generated results<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/2/72f20aea42732f6a32b3ba0757886b696f3bbf48.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/72f20aea42732f6a32b3ba0757886b696f3bbf48" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72f20aea42732f6a32b3ba0757886b696f3bbf48_2_690x491.jpeg" alt="image" data-base62-sha1="goR0lu6k9dwV5AnZkHYyE7AtLcI" width="690" height="491" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72f20aea42732f6a32b3ba0757886b696f3bbf48_2_690x491.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72f20aea42732f6a32b3ba0757886b696f3bbf48_2_1035x736.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/7/2/72f20aea42732f6a32b3ba0757886b696f3bbf48_2_1380x982.jpeg 2x" data-dominant-color="BCAFA8"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1662×1184 418 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
It is kind of 50/50, so im not sure this is as good as the paper’s.</p>