Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is 'activation=False' in decoder? #7

Open
notabigfish opened this issue Jun 28, 2018 · 3 comments
Open

Why is 'activation=False' in decoder? #7

notabigfish opened this issue Jun 28, 2018 · 3 comments

Comments

@notabigfish
Copy link

notabigfish commented Jun 28, 2018

Hi, I'm studying on SegNet and your codes are excellent for understanding the whole structure of SegNet. While reading your codes, I felt a little confused about the 35th line in inference.py. Could you please tell me, why did you set activation=False in conv_decode4 = conv_layer_with_bn(initializer, unpool_4, [7, 7, 64, 64], is_training, False, name="conv_decode4") and other conv_layer_with_bn in decoder part ? Thank you very much!

@mathildor
Copy link
Owner

Honestly, I'm not quite sure and I remember wondering about this as well when I implemented the network. Let me look into it a bit and maybe I can give you an answer :)

@mathildor
Copy link
Owner

mathildor commented Jun 29, 2018

From the segnet paper I found this in the first paragraph of chapter 3: «No ReLU non-linearity is used in the decoder unlike the deconvolution network [41, 42]. This makes it easier to optimize the filters in each pair.» I'm not sure exactly why, but at least it means that it has been tested and shown to work better I guess.

@notabigfish
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants