Skip to content

Commit

Permalink
modified vgg encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeShewill-CV committed Oct 24, 2018
1 parent fc09e4c commit b811944
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions encoder_decoder_model/vgg_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ def _conv_stage(self, input_tensor, k_size, out_dims, name,

relu = self.relu(inputdata=bn, name='relu')

spatial_dropout = self.spatial_dropout(input_tensor=relu, keep_prob=0.5,
is_training=self._is_training,
name='spatial_dropout')

return spatial_dropout
return relu

def _fc_stage(self, input_tensor, out_dims, name, use_bias=False):
"""
Expand Down Expand Up @@ -185,6 +181,7 @@ def encode(self, input_tensor, name):

return ret


if __name__ == '__main__':
a = tf.placeholder(dtype=tf.float32, shape=[1, 2048, 2048, 3], name='input')
encoder = VGG16Encoder(phase=tf.constant('train', dtype=tf.string))
Expand Down

0 comments on commit b811944

Please sign in to comment.