def _build_network(self):
with slim.arg_scope([slim.conv2d],
activation_fn=tf.nn.relu,
weights_regularizer=slim.l2_regularizer(self.weight_decay),
weights_initializer= self.weights_initializer,
biases_initializer = self.biases_initializer):
with slim.arg_scope([slim.conv2d, slim.max_pool2d],
padding='SAME',
data_format = self.data_format):
with tf.variable_scope(self.basenet_type):
basenet, end_points = net_factory.get_basenet(self.basenet_type, self.inputs);
with tf.variable_scope('extra_layers'):
self.net, self.end_points = self._add_extra_layers(basenet, end_points);
with tf.variable_scope('seglink_layers'):
self._add_seglink_layers();
评论列表
文章目录