jfzhang95 / pytorch-deeplab-xception

DeepLab v3+ model in PyTorch. Support different backbones.
MIT License
2.91k stars 781 forks source link

Is there any problem with exit flow of Xception? #3

Closed Woolseyyy closed 6 years ago

Woolseyyy commented 6 years ago

The output size is 256x256 in the example code, in which input's size is 512x512.

I find that there are some differences with official tensorflow version. That version uses dilated convolution(rate 2, stride 1) in exit flow and uses stride 1 convolution in skip connection.

As a result, in their version, the scale rate of Xception layer is 16 instead of 32. The whole model can produce same size output with input instead half of input.

Do I mistake something?

jfzhang95 commented 6 years ago

I read the official tensorflow implemented deeplab and I think you are right. I really misunderstand some parts of the Exitflow module.

Currently, I implement a new separable convolution function to solve this problem. The output_stride is 16 instead of 32 now.

Thank you for correcting me!