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

3x3 sigmoid/softmax output. #63

Open
JakobKHAndersen opened this issue Jan 23, 2021 · 2 comments
Open

3x3 sigmoid/softmax output. #63

JakobKHAndersen opened this issue Jan 23, 2021 · 2 comments

Comments

@JakobKHAndersen
Copy link

Hello

I was wondering what the rational is for using 3x3 convolutions as opposed to 1x1 convolutions in the output layer. As far as i know, the original U-net paper uses 1x1 sigmoid/softmax neurons in the output for pixelwise classification, but in you implementation you use 3x3. Why is that?

@MrGiovanni
Copy link
Owner

MrGiovanni commented Jan 24, 2021

Hi @DBAFC

Which implementation did you refer to? I think I used 1x1 convolutions in the output layer as well.

See
https://github.com/MrGiovanni/UNetPlusPlus/blob/master/keras/helper_functions.py#L135
unet_output = Conv2D(num_class, (1, 1), activation='sigmoid', name='output', kernel_initializer = 'he_normal', padding='same', kernel_regularizer=l2(1e-4))(conv1_5)

https://github.com/MrGiovanni/UNetPlusPlus/blob/master/keras/helper_functions.py#L269
nestnet_output_4 = Conv2D(num_class, (1, 1), activation='sigmoid', name='output_4', kernel_initializer = 'he_normal', padding='same', kernel_regularizer=l2(1e-4))(conv1_5)

@JakobKHAndersen
Copy link
Author

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