AdderNet icon indicating copy to clipboard operation
AdderNet copied to clipboard

AdderNet Upsample

Open jdsjfi opened this issue 3 years ago • 6 comments

Hello, I want to realize the Transposed Adder layer according to the relationship between convolution and transposed convolution, but from the result I found that the image it generates has very obvious checkerboard artifacts. I think that it is because the variance of the output of AdderNet is much larger than CNN. So I want to know if you could give me some suggestions to solve it? Thanks very much!!!

jdsjfi avatar Jul 21 '21 09:07 jdsjfi

We add BN layer after adder layer to solve this problem in our paper.

HantingChen avatar Jul 21 '21 09:07 HantingChen

I also add BN layer after each Transposed Adder layer what I mentioned above and the feature maps it generated also have obvious checkerboard artifacts. Could you help me solve it? Thanks a lot!

jdsjfi avatar Jul 21 '21 11:07 jdsjfi

How if you use the transposed conv layer?

HantingChen avatar Jul 23 '21 10:07 HantingChen

When I use transposed convolution, it also has a little checkerboard artifacts, but it is not very obvious if you do not observe it carefully.

jdsjfi avatar Jul 23 '21 11:07 jdsjfi

I think this may caused by some optimization problems. Maybe you can try to adjust the hyper-parameters such as learning rate.

HantingChen avatar Jul 30 '21 10:07 HantingChen

Perhaps you can try using upsampling and then apply normal conv2d/adder2d similar to what is discussed here https://distill.pub/2016/deconv-checkerboard/

ckyrkou avatar Aug 26 '21 13:08 ckyrkou