meetps / pytorch-semseg

Semantic Segmentation Architectures Implemented in PyTorch
https://meetshah.dev/semantic-segmentation/deep-learning/pytorch/visdom/2017/06/01/semantic-segmentation-over-the-years.html
MIT License
3.38k stars 799 forks source link

Saving one ReLU operation in bottleNeckPSP and bottleNeckIdentifyPSP? #228

Open kame-hameha opened 4 years ago

kame-hameha commented 4 years ago

Is there a reason for not using 4 ReLUs in the bottleNeckPSP class? In utils.py#614, you are using self.cb3 = conv2DBatchNorm instead of another conv2DBatchNormRelu?: --> three ReLUs + another ReLU for bottleNeckPSP
--> three ReLUs + an identity for bottleNeckIdentifyPSP):

Am I right that you are computing the ReLU for the third conv plus for the identity together; so you first add them and then do the ReLU operation utils.py#630

Are you saving one ReLU operation in that way?