Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Use bias only for He's ResNet50 #621

Merged
merged 3 commits into from
May 28, 2018
Merged

Conversation

yuyu2172
Copy link
Member

Related: #321 (comment)

@@ -151,7 +151,8 @@ def __init__(self, n_layer,
conv1_no_bias = True
elif arch == 'he':
stride_first = True
conv1_no_bias = False
# Kaiming He uses bias only for ResNet50
conv1_no_bias = False if n_layer == 50 else True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about conv1_no_bias = not n_layer == 50?

@@ -151,7 +151,8 @@ def __init__(self, n_layer,
conv1_no_bias = True
elif arch == 'he':
stride_first = True
conv1_no_bias = False
# Kaiming He uses bias only for ResNet50
conv1_no_bias = n_layer == 50
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not

Copy link
Member

@Hakuyume Hakuyume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hakuyume Hakuyume merged commit 1442eac into chainer:master May 28, 2018
@yuyu2172 yuyu2172 added this to the 0.10 milestone Jun 1, 2018
@yuyu2172 yuyu2172 deleted the bias-resnet50 branch June 1, 2018 05:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants