Skip to content

Commit b8b53a2

Browse files
authored
Merge pull request #5 from mlopezantequera/remove_biases
Remove biases before Batch Normalization and shifted changes to arg_scope.
2 parents 33d237a + 98e3a04 commit b8b53a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def xception_arg_scope(weight_decay=0.00001,
162162
# Set weight_decay for weights in conv2d and separable_conv2d layers.
163163
with slim.arg_scope([slim.conv2d, slim.separable_conv2d],
164164
weights_regularizer=slim.l2_regularizer(weight_decay),
165-
biases_regularizer=slim.l2_regularizer(weight_decay)):
165+
biases_initializer=None):
166166

167167
# Set parameters for batch_norm. Note: Do not set activation function as it's preset to None already.
168168
with slim.arg_scope([slim.batch_norm],

0 commit comments

Comments
 (0)