JihyongOh / JSI-GAN

[AAAI 2020] Official repository of JSI-GAN.
60 stars 16 forks source link

How to apply the generated 1D kernels to the detail layer? #2

Closed zhs1 closed 3 years ago

zhs1 commented 4 years ago

Hi, Thanks for your great work, I have a question when implementing it with pytorch: How to apply the generated 1D kernels to the detail layer? Could you explain it in detail? Thank you!

sooyekim commented 4 years ago

Hi @zhs1 ,

Thanks for the interest in our work! I apologize for the late reply.

The resulting filter block (one for vertical and one for horizontal) from the Detail Restoration subnet would be a 3-dimensional tensor of size HxWx(kxscalexscale). If we assume a case for scale=2, there would be four blocks of HxWxk stacked in the channel dimension.

I tried to be as descriptive as possible but if any part of the explanation is unclear, please do not hesitate to ask. Also, you could refer to the uploaded Tensorflow version of the code now that it's updated :)

Best, Soo Ye