Skip to content

Commit

Permalink
rm max pool -> strides in conv2d
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumegenthial committed Sep 20, 2017
1 parent 400e5f5 commit 0bb091b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions model/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,20 @@ def __call__(self, training, img, dropout):
with tf.variable_scope("convolutional_encoder"):
out = tf.layers.conv2d(img, 64, 3, 1, "SAME",
activation=tf.nn.relu)
out = tf.layers.max_pooling2d(out, 2, 2, "SAME")

out = tf.layers.conv2d(out, 128, 3, 1, "SAME",
out = tf.layers.conv2d(out, 128, 3, 2, "SAME",
activation=tf.nn.relu)
out = tf.layers.max_pooling2d(out, 2, 2, "SAME")

out = tf.layers.conv2d(out, 256, 3, 1, "SAME",
activation=tf.nn.relu)

out = tf.layers.conv2d(out, 256, 3, 1, "SAME",
out = tf.layers.conv2d(out, 256, 3, 2, "SAME",
activation=tf.nn.relu)

out = tf.layers.conv2d(out, 512, 3, 1, "SAME",
activation=tf.nn.relu)

out = tf.layers.conv2d(out, 512, (2, 4), (2, 2), "SAME",
activation=tf.nn.relu)
out = tf.layers.conv2d(out, 512, 3, 1, "VALID",
out = tf.layers.conv2d(out, 512, 3, 2, "VALID",
activation=tf.nn.relu)

return out

0 comments on commit 0bb091b

Please sign in to comment.