style-based-gan-pytorch icon indicating copy to clipboard operation
style-based-gan-pytorch copied to clipboard

What does blur function do?

Open allenhung1025 opened this issue 4 years ago • 3 comments

Dear author:

Thanks for your amazing repo, it helped me understanding stylegan more.

I got stuck when tracing your code at model.py

I didn't understand what blur functions do and their counterparts in the original paper. I would be very thankful if anyone understands could share his or her thoughts about my problem.

Thanks~

allenhung1025 avatar Jan 06 '21 05:01 allenhung1025

It corresponds to bilinear sampling in the paper. You can refer to https://arxiv.org/abs/1904.11486.

rosinality avatar Jan 06 '21 10:01 rosinality

Thanks for your feedback. I understood blur functions more. However, I still didn't understand why, in your implementation, you used the blurring technique two times. The first time is in BlurFunction, the second time is in BlurFunctionBackward. Thank you again for your amazing work!!

allenhung1025 avatar Jan 11 '21 06:01 allenhung1025

It is the implementation of backward pass of blur operation, so it is not applied twice.

rosinality avatar Jan 11 '21 12:01 rosinality