implus / PytorchInsight

a pytorch lib with state-of-the-art architectures, pretrained models and real-time updated results
858 stars 123 forks source link

About the kernel size in resnet_sk #14

Closed yuhuixu1993 closed 5 years ago

yuhuixu1993 commented 5 years ago

hi, @implus , thanks for sharing the codes. I have a question that the two convolutions in resnet_sk are all 3x3 conv. While your paper says they are with different kernel-size or different dilation sizes?

ma-xu commented 5 years ago

hi, @implus , thanks for sharing the codes. I have a question that the two convolutions in resnet_sk are all 3x3 conv. While your paper says they are with different kernel-size or different dilation sizes?

Maybe I can answer this question. As SKNet indicated, the kernel size of second conv could be any size. In this code, it is 3x3 but grouped. Also, u can adopt 3x3 conv with dilation 2 to simulate a 5x5 conv.

implus commented 5 years ago

Yes, it can be any size and in this project, we slightly modify the SK operation because we need to base on ResNet-like architecture. The original SK paper is mainly based on ResNeXt-like architecture.