github-pengge / PyTorch-progressive_growing_of_gans

PyTorch implementation of Progressive Growing of GANs for Improved Quality, Stability, and Variation.
580 stars 98 forks source link

resize_activation function #1

Open Paseam opened 7 years ago

Paseam commented 7 years ago

hi,as you say you replace repeat by torch.nn.functional.upsample, but i read the source codes from author, it seems that author uses repeat, do you notice it ?

github-pengge commented 7 years ago

However, using repeat suffers from severe perturbation when fading in. Besides, the author used repeat to implement nearest neighbor upsampling. You can verify that via numpy.repeat(PyTorch can not achieve this through repeat, since it only repeat at size 1 dim.).