Beispiel #1
0
def rpn_head_generator(params):
    """Generator function for RPN head architecture."""
    return heads.RpnHead(params.min_level,
                         params.max_level,
                         params.anchors_per_location,
                         batch_norm_relu=batch_norm_relu_generator(
                             params.batch_norm))
Beispiel #2
0
def rpn_head_generator(params):
    """Generator function for RPN head architecture."""
    return heads.RpnHead(params.min_level,
                         params.max_level,
                         params.anchors_per_location,
                         params.num_convs,
                         params.num_filters,
                         params.use_separable_conv,
                         params.use_batch_norm,
                         batch_norm_relu=batch_norm_relu_generator(
                             params.batch_norm))
Beispiel #3
0
def rpn_head_generator(params):
    """Generator function for RPN head architecture."""
    head_params = params.rpn_head
    return heads.RpnHead(params.architecture.min_level,
                         params.architecture.max_level,
                         head_params.anchors_per_location,
                         head_params.num_convs,
                         head_params.num_filters,
                         head_params.use_separable_conv,
                         params.norm_activation.activation,
                         head_params.use_batch_norm,
                         norm_activation=norm_activation_generator(
                             params.norm_activation))