bonlime / keras-deeplab-v3-plus

Keras implementation of Deeplab v3+ with pretrained weights
MIT License
1.35k stars 428 forks source link

Order of the convolution #169

Open andrewcheng2016 opened 9 months ago

andrewcheng2016 commented 9 months ago

According to "Xception: Deep Learning with Depthwise Separable Convolutions", the 1 x 1 pointwise convolution should be performed before the depthwise convolution. But it seems the order is reversed in def SepConv_BN().

Below is the quote: The order of the operations: depthwise separable convolutions as usually implemented (e.g. in Tensorflow) perform first channel-wise spatial convolution and then perform 1x1 convolution, whereas Inception performs the 1x1 convolution first.