rosasalberto / StyleGAN2-TensorFlow-2.x

Unofficial implementation of StyleGAN2 using TensorFlow 2.x.
142 stars 40 forks source link

Need help understanding the role of the 'upfirdn' after the transpose_conv #8

Open NoAchache opened 3 years ago

NoAchache commented 3 years ago

Hello, I don't really get the point of the upfirdn (apart from reducing the dim of the height and width of x by one)? How is the resample kernel chosen? ([1,3,3,1] in the code) Why is the filter 4x4 (In the doc of the upfirdn of scipy, it says the filter should be 1-D https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.upfirdn.html )?

Thank you!