resize_activation function
Paseam opened this issue · 1 comments
Paseam commented
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
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.).